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
- BadImageFormatException.cs
- Documentation.cs
- SemanticBasicElement.cs
- SqlTypesSchemaImporter.cs
- WeakEventManager.cs
- ClientCultureInfo.cs
- MenuItemStyleCollection.cs
- ResXResourceReader.cs
- SimpleType.cs
- Grid.cs
- ClonableStack.cs
- HebrewNumber.cs
- QuadraticBezierSegment.cs
- DataViewSettingCollection.cs
- Clause.cs
- CollectionChangeEventArgs.cs
- WebDescriptionAttribute.cs
- PrePrepareMethodAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MethodExpression.cs
- StandardOleMarshalObject.cs
- CfgParser.cs
- InstanceKey.cs
- XamlSerializer.cs
- HeaderElement.cs
- XmlSchemaNotation.cs
- ObjectDataSourceDisposingEventArgs.cs
- DynamicRendererThreadManager.cs
- UserControlParser.cs
- ViewLoader.cs
- XmlTextAttribute.cs
- Error.cs
- peernodestatemanager.cs
- HtmlInputPassword.cs
- isolationinterop.cs
- StrongName.cs
- SafeWaitHandle.cs
- CallbackValidator.cs
- OperationInfoBase.cs
- SwitchElementsCollection.cs
- UIElement.cs
- HostExecutionContextManager.cs
- ReturnValue.cs
- UnsafeNativeMethods.cs
- EndpointAddress.cs
- ThreadExceptionEvent.cs
- MsmqIntegrationSecurity.cs
- HttpDebugHandler.cs
- PrintPreviewControl.cs
- SystemIPInterfaceProperties.cs
- SpeechDetectedEventArgs.cs
- SafeArrayRankMismatchException.cs
- InputLanguageManager.cs
- ServiceEndpointElementCollection.cs
- DataPagerFieldCollection.cs
- Block.cs
- X509Certificate2.cs
- BitmapImage.cs
- util.cs
- GridViewColumnHeaderAutomationPeer.cs
- ModelUIElement3D.cs
- TraceEventCache.cs
- HttpBrowserCapabilitiesWrapper.cs
- ToolStripButton.cs
- Int16AnimationBase.cs
- RadioButtonBaseAdapter.cs
- NativeMethods.cs
- AstNode.cs
- ImageCodecInfoPrivate.cs
- Confirm.cs
- UseManagedPresentationBindingElementImporter.cs
- Propagator.cs
- ReferencedAssembly.cs
- ColorInterpolationModeValidation.cs
- ACL.cs
- ArrayExtension.cs
- ChtmlCalendarAdapter.cs
- TypeConverter.cs
- LinearKeyFrames.cs
- ToolBarPanel.cs
- PropertySourceInfo.cs
- AutomationPeer.cs
- UnauthorizedAccessException.cs
- TableSectionStyle.cs
- BeginGetFileNameFromUserRequest.cs
- CookielessData.cs
- DefaultTextStore.cs
- GridViewDeletedEventArgs.cs
- QuinticEase.cs
- XmlSchemaComplexContent.cs
- ClockController.cs
- EdmItemCollection.cs
- SymmetricKeyWrap.cs
- ChtmlCalendarAdapter.cs
- InheritedPropertyDescriptor.cs
- ConvertersCollection.cs
- NameNode.cs
- PageThemeBuildProvider.cs
- PathNode.cs
- IsolatedStorageFile.cs