Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / System / Data / Odbc / OdbcError.cs / 1 / OdbcError.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] #if WINFSInternalOnly internal #else public #endif sealed class OdbcError { //Data internal string _message; internal string _state; internal int _nativeerror; internal string _source; internal OdbcError(string source, string message, string state, int nativeerror) { _source = source; _message = message; _state = state; _nativeerror= nativeerror; } public string Message { get { return ((null != _message) ? _message : String.Empty); } } public string SQLState { get { return _state; } } public int NativeError { get { return _nativeerror; } } public string Source { get { return ((null != _source) ? _source : String.Empty); } } internal void SetSource (string Source) { _source = Source; } override public string ToString() { return Message; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] #if WINFSInternalOnly internal #else public #endif sealed class OdbcError { //Data internal string _message; internal string _state; internal int _nativeerror; internal string _source; internal OdbcError(string source, string message, string state, int nativeerror) { _source = source; _message = message; _state = state; _nativeerror= nativeerror; } public string Message { get { return ((null != _message) ? _message : String.Empty); } } public string SQLState { get { return _state; } } public int NativeError { get { return _nativeerror; } } public string Source { get { return ((null != _source) ? _source : String.Empty); } } internal void SetSource (string Source) { _source = Source; } override public string ToString() { return Message; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FtpWebResponse.cs
- TreeIterator.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ResolvedKeyFrameEntry.cs
- FontInfo.cs
- Opcode.cs
- HttpContext.cs
- TextSpanModifier.cs
- EnumerableWrapperWeakToStrong.cs
- ProvidePropertyAttribute.cs
- ExternalException.cs
- ProjectionPlan.cs
- ExclusiveCanonicalizationTransform.cs
- HtmlFormParameterWriter.cs
- FormattedTextSymbols.cs
- IgnoreDeviceFilterElement.cs
- ValueOfAction.cs
- StrokeRenderer.cs
- ResourceExpression.cs
- SchemaMapping.cs
- CodeObjectCreateExpression.cs
- ListBindableAttribute.cs
- ReadOnlyTernaryTree.cs
- EditingCommands.cs
- TouchEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- Guid.cs
- SequentialWorkflowRootDesigner.cs
- XmlSchemaObject.cs
- DoubleCollectionValueSerializer.cs
- IndexedString.cs
- SyncOperationState.cs
- ToolboxComponentsCreatedEventArgs.cs
- AutomationProperties.cs
- BaseUriHelper.cs
- Opcode.cs
- CompilationUnit.cs
- AttributeConverter.cs
- GeometryHitTestResult.cs
- DataGridViewCheckBoxColumn.cs
- TemplatePartAttribute.cs
- TimeSpanConverter.cs
- LogEntryUtils.cs
- CodeSubDirectory.cs
- ScriptManager.cs
- TagPrefixAttribute.cs
- StandardCommands.cs
- ToolStripSplitButton.cs
- LogFlushAsyncResult.cs
- ExpressionNode.cs
- PropertyRef.cs
- XamlValidatingReader.cs
- Menu.cs
- CompiledQueryCacheKey.cs
- XmlTextEncoder.cs
- AvTraceFormat.cs
- WriterOutput.cs
- StickyNoteAnnotations.cs
- NativeMethods.cs
- ContentFileHelper.cs
- AuthenticationConfig.cs
- PersianCalendar.cs
- RuleInfoComparer.cs
- XmlWhitespace.cs
- WebPartConnectionsEventArgs.cs
- StylusCollection.cs
- GridViewRowCollection.cs
- PageCatalogPart.cs
- MetadataItem_Static.cs
- SmtpNegotiateAuthenticationModule.cs
- Brush.cs
- PreviewPageInfo.cs
- BoundPropertyEntry.cs
- HtmlInputRadioButton.cs
- RectAnimation.cs
- PageAsyncTaskManager.cs
- LineVisual.cs
- CounterCreationData.cs
- TransformValueSerializer.cs
- SvcMapFileLoader.cs
- ListSourceHelper.cs
- ListManagerBindingsCollection.cs
- ItemsChangedEventArgs.cs
- DispatcherFrame.cs
- TagMapInfo.cs
- ProviderSettings.cs
- ExternalException.cs
- XdrBuilder.cs
- AutoScrollHelper.cs
- ByteFacetDescriptionElement.cs
- AuthorizationRuleCollection.cs
- XmlQuerySequence.cs
- PropertyFilter.cs
- ClonableStack.cs
- XmlSchemaObject.cs
- TouchesOverProperty.cs
- XmlQueryTypeFactory.cs
- DataGridViewEditingControlShowingEventArgs.cs
- StringConverter.cs
- OleServicesContext.cs