Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Odbc / OdbcError.cs / 1305376 / OdbcError.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] public 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] public 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
- XmlHierarchicalDataSourceView.cs
- PreviewKeyDownEventArgs.cs
- entityreference_tresulttype.cs
- ContextInformation.cs
- CssClassPropertyAttribute.cs
- ProgressBarAutomationPeer.cs
- LicenseProviderAttribute.cs
- Gdiplus.cs
- UpDownBase.cs
- ReachSerializableProperties.cs
- SiteMapDataSourceDesigner.cs
- DataGridViewCellEventArgs.cs
- TypeLoadException.cs
- OuterGlowBitmapEffect.cs
- XmlExceptionHelper.cs
- KnownTypesHelper.cs
- Point3DAnimationUsingKeyFrames.cs
- HMACMD5.cs
- TypeBuilderInstantiation.cs
- TextSelectionHighlightLayer.cs
- BamlResourceDeserializer.cs
- SqlDataSourceDesigner.cs
- Activity.cs
- X509Utils.cs
- SetUserPreferenceRequest.cs
- FrameworkContextData.cs
- TextParentUndoUnit.cs
- BrowserInteropHelper.cs
- EntityDesignerDataSourceView.cs
- UrlPath.cs
- XmlSchemaAttributeGroup.cs
- _DisconnectOverlappedAsyncResult.cs
- HuffCodec.cs
- PathFigure.cs
- BlockUIContainer.cs
- InputScopeManager.cs
- ScriptReference.cs
- ToolStripDesignerAvailabilityAttribute.cs
- IncomingWebRequestContext.cs
- ScrollProviderWrapper.cs
- ParameterDataSourceExpression.cs
- BitmapEffect.cs
- CounterSet.cs
- BindingNavigator.cs
- ResourceCollectionInfo.cs
- SQLMoney.cs
- SecurityTokenAttachmentMode.cs
- DataServiceQueryException.cs
- PriorityBinding.cs
- QueryOperatorEnumerator.cs
- PerspectiveCamera.cs
- JapaneseCalendar.cs
- WindowsAuthenticationEventArgs.cs
- ApplicationInterop.cs
- processwaithandle.cs
- HostingEnvironmentException.cs
- HashFinalRequest.cs
- XPathSelfQuery.cs
- GraphicsState.cs
- DocumentViewerAutomationPeer.cs
- DetailsViewUpdatedEventArgs.cs
- BasicKeyConstraint.cs
- ApplyImportsAction.cs
- WebBrowserUriTypeConverter.cs
- SpecialNameAttribute.cs
- COM2PropertyDescriptor.cs
- CodeTypeConstructor.cs
- FixedSOMTable.cs
- ScaleTransform.cs
- MembershipUser.cs
- EventWaitHandleSecurity.cs
- XmlBaseWriter.cs
- EnumerableCollectionView.cs
- ContentDisposition.cs
- BasePropertyDescriptor.cs
- TransformProviderWrapper.cs
- MenuItemBindingCollection.cs
- DrawingState.cs
- _LazyAsyncResult.cs
- ExceptionValidationRule.cs
- FullTextLine.cs
- DefaultObjectSerializer.cs
- Propagator.JoinPropagator.cs
- WinEventTracker.cs
- SqlUserDefinedTypeAttribute.cs
- SingleTagSectionHandler.cs
- SevenBitStream.cs
- FormViewModeEventArgs.cs
- AssemblyHash.cs
- SoapReflectionImporter.cs
- validationstate.cs
- TextSimpleMarkerProperties.cs
- ThumbAutomationPeer.cs
- DrawingCollection.cs
- HwndSourceParameters.cs
- ProfileSection.cs
- FreeFormDesigner.cs
- DbConvert.cs
- RectAnimationUsingKeyFrames.cs
- KeyConstraint.cs