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
- AutoGeneratedField.cs
- FieldAccessException.cs
- ADMembershipUser.cs
- AccessedThroughPropertyAttribute.cs
- EpmTargetPathSegment.cs
- SupportsEventValidationAttribute.cs
- PenContext.cs
- GeneralTransformCollection.cs
- GridPattern.cs
- ToolstripProfessionalRenderer.cs
- FontCacheLogic.cs
- AutomationPatternInfo.cs
- ApplicationHost.cs
- EmbeddedMailObject.cs
- OLEDB_Util.cs
- ReflectionTypeLoadException.cs
- StyleModeStack.cs
- RichTextBoxDesigner.cs
- SHA256.cs
- BackgroundFormatInfo.cs
- METAHEADER.cs
- wpf-etw.cs
- itemelement.cs
- TextBox.cs
- TextSchema.cs
- IdentityNotMappedException.cs
- ItemDragEvent.cs
- SqlCommandSet.cs
- _LocalDataStoreMgr.cs
- ChooseAction.cs
- WindowsClaimSet.cs
- GroupBox.cs
- UndoManager.cs
- ResourceWriter.cs
- AnonymousIdentificationSection.cs
- WebControlParameterProxy.cs
- SchemaObjectWriter.cs
- DataGridViewBindingCompleteEventArgs.cs
- XamlSerializer.cs
- OdbcTransaction.cs
- StretchValidation.cs
- ApplicationCommands.cs
- CustomErrorsSection.cs
- PermissionAttributes.cs
- SqlUtils.cs
- TextBoxBase.cs
- NullableDoubleAverageAggregationOperator.cs
- ListViewDesigner.cs
- SimpleType.cs
- CryptoApi.cs
- RecordConverter.cs
- NetworkCredential.cs
- ServicePointManager.cs
- RegisteredHiddenField.cs
- RegexTree.cs
- SafeProcessHandle.cs
- PackageRelationshipCollection.cs
- SystemFonts.cs
- _DomainName.cs
- XmlNamespaceDeclarationsAttribute.cs
- CustomBindingElement.cs
- BigInt.cs
- DbModificationCommandTree.cs
- WinEventHandler.cs
- NativeWindow.cs
- VirtualizedContainerService.cs
- TimeIntervalCollection.cs
- EventDescriptor.cs
- ItemsPresenter.cs
- ConnectionPoint.cs
- X509Extension.cs
- CurrencyManager.cs
- WebPermission.cs
- NamespaceInfo.cs
- RectValueSerializer.cs
- AppModelKnownContentFactory.cs
- TextChange.cs
- XmlReader.cs
- MultipleViewPatternIdentifiers.cs
- PermissionSetTriple.cs
- MarkupProperty.cs
- FramingChannels.cs
- UIPropertyMetadata.cs
- TitleStyle.cs
- ClientProxyGenerator.cs
- WebServiceData.cs
- ContentElement.cs
- DataServiceOperationContext.cs
- _IPv4Address.cs
- DateTimeConverter.cs
- ISFClipboardData.cs
- CroppedBitmap.cs
- baseaxisquery.cs
- FixUp.cs
- OleAutBinder.cs
- RecognitionEventArgs.cs
- XmlSchemaGroup.cs
- EdmConstants.cs
- ReferenceEqualityComparer.cs
- FileStream.cs