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
- Span.cs
- WindowsListViewItem.cs
- SvcMapFile.cs
- ScrollBarAutomationPeer.cs
- UnhandledExceptionEventArgs.cs
- SafeLibraryHandle.cs
- TypedMessageConverter.cs
- safex509handles.cs
- Simplifier.cs
- TextBoxAutoCompleteSourceConverter.cs
- FormViewDeleteEventArgs.cs
- AdornedElementPlaceholder.cs
- Base64Stream.cs
- PasswordBox.cs
- HitTestFilterBehavior.cs
- IsolatedStorageFile.cs
- HttpCapabilitiesSectionHandler.cs
- ApplicationContext.cs
- FileAuthorizationModule.cs
- Context.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- VirtualPathUtility.cs
- ServiceAuthorizationElement.cs
- ItemCollection.cs
- IsolatedStorageFilePermission.cs
- PnrpPermission.cs
- WebUtil.cs
- PageThemeBuildProvider.cs
- TextBox.cs
- TableRow.cs
- Pair.cs
- InstanceOwnerException.cs
- Vector3DAnimationUsingKeyFrames.cs
- AuthorizationRuleCollection.cs
- AstTree.cs
- UnmanagedHandle.cs
- XmlSchemaImport.cs
- XmlSiteMapProvider.cs
- ExpressionBinding.cs
- ExpressionBuilder.cs
- Timer.cs
- NeedSkipTokenVisitor.cs
- ValueSerializerAttribute.cs
- Module.cs
- RegisteredScript.cs
- Point4D.cs
- SiteMapDataSourceView.cs
- SecureUICommand.cs
- SqlResolver.cs
- DataError.cs
- ContainerParaClient.cs
- ExceptionRoutedEventArgs.cs
- IntSecurity.cs
- PartialList.cs
- EarlyBoundInfo.cs
- _Events.cs
- BaseUriHelper.cs
- DispatcherHooks.cs
- EditingMode.cs
- SqlDependency.cs
- DefaultTextStore.cs
- SchemaElementLookUpTable.cs
- BitmapInitialize.cs
- SystemIPInterfaceProperties.cs
- PrintController.cs
- DataBindingCollection.cs
- RemoteEndpointMessageProperty.cs
- SchemaNamespaceManager.cs
- InternalControlCollection.cs
- ChannelServices.cs
- ObjectStorage.cs
- HttpHandlerActionCollection.cs
- KeyboardDevice.cs
- UserControl.cs
- OciLobLocator.cs
- UnsafePeerToPeerMethods.cs
- XsltConvert.cs
- ContextBase.cs
- HtmlFormAdapter.cs
- KeyInstance.cs
- OrthographicCamera.cs
- XsltSettings.cs
- Validator.cs
- RegexCompiler.cs
- CategoryValueConverter.cs
- PasswordBoxAutomationPeer.cs
- _SecureChannel.cs
- RtfToken.cs
- HtmlShim.cs
- WsatConfiguration.cs
- Graphics.cs
- NameValuePermission.cs
- ExternalCalls.cs
- TargetParameterCountException.cs
- StructuredTypeEmitter.cs
- VScrollBar.cs
- MarkupExtensionParser.cs
- WebServiceResponse.cs
- FontInfo.cs
- CodeAttachEventStatement.cs