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
- InkPresenter.cs
- XmlSchemaCollection.cs
- WebPartConnectionsConnectVerb.cs
- CompatibleComparer.cs
- DeflateStream.cs
- SystemFonts.cs
- CultureTable.cs
- SafeHandles.cs
- TableLayoutStyle.cs
- CompressionTransform.cs
- HttpListenerException.cs
- ControlParameter.cs
- StringBlob.cs
- SerialReceived.cs
- CopyNamespacesAction.cs
- QueryParameter.cs
- NativeMethods.cs
- JavaScriptSerializer.cs
- FloatUtil.cs
- TextModifierScope.cs
- HandlerFactoryCache.cs
- ByteRangeDownloader.cs
- DropShadowBitmapEffect.cs
- DefaultBindingPropertyAttribute.cs
- StorageEntitySetMapping.cs
- DataGridViewAccessibleObject.cs
- SmtpLoginAuthenticationModule.cs
- SqlCacheDependencyDatabaseCollection.cs
- FrameworkTextComposition.cs
- XmlDictionaryReaderQuotas.cs
- PropertyBuilder.cs
- RandomNumberGenerator.cs
- Link.cs
- GenericPrincipal.cs
- MenuScrollingVisibilityConverter.cs
- storepermissionattribute.cs
- NopReturnReader.cs
- CounterCreationDataCollection.cs
- DesignerVerbCollection.cs
- DecimalKeyFrameCollection.cs
- Html32TextWriter.cs
- ConvertTextFrag.cs
- ParsedAttributeCollection.cs
- ContentPlaceHolder.cs
- AudioStateChangedEventArgs.cs
- SqlTriggerAttribute.cs
- TdsParserStateObject.cs
- KeyPressEvent.cs
- SQlBooleanStorage.cs
- FieldInfo.cs
- ScriptingScriptResourceHandlerSection.cs
- ContainerParagraph.cs
- basemetadatamappingvisitor.cs
- FlowchartStart.xaml.cs
- SimpleHandlerBuildProvider.cs
- ClientFormsAuthenticationCredentials.cs
- ResourceReferenceExpressionConverter.cs
- OleDbParameterCollection.cs
- RegexMatchCollection.cs
- ImageCreator.cs
- ResourceCodeDomSerializer.cs
- userdatakeys.cs
- SqlMethodCallConverter.cs
- _AuthenticationState.cs
- SchemaObjectWriter.cs
- DeclaredTypeValidatorAttribute.cs
- SendingRequestEventArgs.cs
- XmlUtf8RawTextWriter.cs
- DataChangedEventManager.cs
- TargetParameterCountException.cs
- SqlDataSourceCache.cs
- ArgIterator.cs
- Content.cs
- FlowDocumentFormatter.cs
- HttpConfigurationSystem.cs
- SevenBitStream.cs
- XmlComment.cs
- TriggerCollection.cs
- RuntimeConfigLKG.cs
- WindowsScrollBar.cs
- TextElementEnumerator.cs
- HtmlContainerControl.cs
- FormViewInsertEventArgs.cs
- XPathAncestorIterator.cs
- PeerCollaborationPermission.cs
- ForeignConstraint.cs
- EncodingDataItem.cs
- SafeRightsManagementQueryHandle.cs
- OleDbPropertySetGuid.cs
- DrawingBrush.cs
- PublisherIdentityPermission.cs
- CommandArguments.cs
- FlowPosition.cs
- CompModSwitches.cs
- WebPartConnectionsEventArgs.cs
- WebServiceErrorEvent.cs
- GenericTransactionFlowAttribute.cs
- TraceFilter.cs
- WindowsListViewGroup.cs
- ListBindableAttribute.cs