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
- WmlLabelAdapter.cs
- DataServiceResponse.cs
- DocumentViewerConstants.cs
- CodeVariableDeclarationStatement.cs
- Path.cs
- UIElementIsland.cs
- StaticTextPointer.cs
- XamlWriter.cs
- DoubleAnimationBase.cs
- _Semaphore.cs
- PixelFormats.cs
- BitmapMetadataBlob.cs
- AttributeCallbackBuilder.cs
- _TLSstream.cs
- MenuStrip.cs
- TextProperties.cs
- XmlLoader.cs
- XamlSerializationHelper.cs
- PropertyPushdownHelper.cs
- DeviceContext.cs
- RemotingAttributes.cs
- BuildManagerHost.cs
- ClientData.cs
- Clipboard.cs
- ScaleTransform3D.cs
- MethodCallTranslator.cs
- OracleColumn.cs
- TransportSecurityProtocolFactory.cs
- UserPreferenceChangingEventArgs.cs
- ScrollContentPresenter.cs
- RequiredArgumentAttribute.cs
- _TLSstream.cs
- NamespaceDisplay.xaml.cs
- Point3DCollection.cs
- unitconverter.cs
- FormViewModeEventArgs.cs
- PasswordTextNavigator.cs
- DayRenderEvent.cs
- AutoResetEvent.cs
- ChildrenQuery.cs
- CounterSet.cs
- ToolStripRendererSwitcher.cs
- MessageQueueKey.cs
- QilGeneratorEnv.cs
- MSAAEventDispatcher.cs
- ItemList.cs
- Transform3DGroup.cs
- BaseAppDomainProtocolHandler.cs
- InputProviderSite.cs
- ItemsControl.cs
- SelectionListComponentEditor.cs
- ObservableCollection.cs
- TypeSystem.cs
- TextTreeDeleteContentUndoUnit.cs
- NetworkInterface.cs
- CheckBoxStandardAdapter.cs
- OdbcInfoMessageEvent.cs
- InternalSafeNativeMethods.cs
- WebPartTransformerCollection.cs
- validationstate.cs
- MarkupExtensionReturnTypeAttribute.cs
- FormatVersion.cs
- Part.cs
- AutoSizeComboBox.cs
- JapaneseLunisolarCalendar.cs
- Walker.cs
- TypeDelegator.cs
- DataGridColumnHeaderCollection.cs
- ErrorWebPart.cs
- DateTime.cs
- TimeSpanOrInfiniteConverter.cs
- DataGridViewRowCollection.cs
- ProcessHostMapPath.cs
- SiteMapDataSource.cs
- NetMsmqSecurityMode.cs
- CoTaskMemHandle.cs
- log.cs
- VisualState.cs
- ConfigPathUtility.cs
- FormattedText.cs
- CategoryEditor.cs
- PropertyPathWorker.cs
- PropertyMappingExceptionEventArgs.cs
- ObjectItemNoOpAssemblyLoader.cs
- StretchValidation.cs
- DebugView.cs
- DynamicValueConverter.cs
- SslStream.cs
- CriticalFinalizerObject.cs
- DictionaryEditChange.cs
- VectorConverter.cs
- PeerReferralPolicy.cs
- TextEffectResolver.cs
- TripleDESCryptoServiceProvider.cs
- MenuItemAutomationPeer.cs
- HtmlButton.cs
- SerializableAttribute.cs
- RuleSettingsCollection.cs
- TokenizerHelper.cs
- DefaultAssemblyResolver.cs