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
- WebControl.cs
- GlyphingCache.cs
- ManagedFilter.cs
- ContextMenuService.cs
- XhtmlBasicListAdapter.cs
- CrossContextChannel.cs
- HttpBrowserCapabilitiesWrapper.cs
- ContainsRowNumberChecker.cs
- PrintPreviewDialog.cs
- ButtonChrome.cs
- LambdaExpression.cs
- _ConnectOverlappedAsyncResult.cs
- AutoResizedEvent.cs
- DataGridViewColumnCollectionDialog.cs
- Menu.cs
- ObjectStorage.cs
- HtmlAnchor.cs
- SolidColorBrush.cs
- Operators.cs
- TransactionState.cs
- WeakReference.cs
- SqlTypeConverter.cs
- PackUriHelper.cs
- EventSourceCreationData.cs
- MimeMapping.cs
- TraceSection.cs
- Int64Converter.cs
- Graphics.cs
- WindowsRegion.cs
- BinaryKeyIdentifierClause.cs
- XmlSerializerSection.cs
- SequentialUshortCollection.cs
- StringAttributeCollection.cs
- HttpCookiesSection.cs
- OdbcConnection.cs
- DBSchemaTable.cs
- ResourceLoader.cs
- DataListItemEventArgs.cs
- ConstraintManager.cs
- MouseWheelEventArgs.cs
- UpdatableWrapper.cs
- LineInfo.cs
- Win32.cs
- TypeElement.cs
- Literal.cs
- XmlChildNodes.cs
- DataBindingCollectionConverter.cs
- PartialCachingAttribute.cs
- Menu.cs
- GridViewDeleteEventArgs.cs
- InputScopeManager.cs
- TraceHwndHost.cs
- ConsumerConnectionPoint.cs
- FreezableCollection.cs
- SerializableAttribute.cs
- TargetConverter.cs
- ToolStripOverflowButton.cs
- remotingproxy.cs
- EdgeProfileValidation.cs
- SvcMapFileLoader.cs
- FullTextLine.cs
- TemplateKeyConverter.cs
- BitmapSourceSafeMILHandle.cs
- BitmapEffectDrawingContent.cs
- TcpChannelHelper.cs
- ModulesEntry.cs
- NamespaceListProperty.cs
- QuotedPrintableStream.cs
- ObjectConverter.cs
- DataGridViewLayoutData.cs
- VirtualPathUtility.cs
- ConnectionPointCookie.cs
- LongValidatorAttribute.cs
- securitycriticaldata.cs
- hwndwrapper.cs
- UndoManager.cs
- XmlObjectSerializerWriteContext.cs
- SiteOfOriginPart.cs
- TypedAsyncResult.cs
- IDQuery.cs
- XPathNavigatorKeyComparer.cs
- ColorTransform.cs
- Encoder.cs
- cookiecollection.cs
- datacache.cs
- Base64Stream.cs
- AstNode.cs
- JpegBitmapEncoder.cs
- ExpressionVisitorHelpers.cs
- ResolvedKeyFrameEntry.cs
- TreeNode.cs
- AppLevelCompilationSectionCache.cs
- XsltFunctions.cs
- Stylesheet.cs
- QueryReaderSettings.cs
- UnknownBitmapDecoder.cs
- TextTreePropertyUndoUnit.cs
- MailMessageEventArgs.cs
- SequentialWorkflowRootDesigner.cs
- DynamicMethod.cs