Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ItemsPresenter.cs
- CommonDialog.cs
- QilTargetType.cs
- Brush.cs
- PackageRelationship.cs
- DesignerDataConnection.cs
- FormsAuthenticationTicket.cs
- TreeNodeCollection.cs
- ModelUIElement3D.cs
- HealthMonitoringSectionHelper.cs
- ConsoleTraceListener.cs
- IfAction.cs
- ReflectPropertyDescriptor.cs
- ExternalException.cs
- AddInEnvironment.cs
- XmlSchemaSubstitutionGroup.cs
- Action.cs
- DataObjectCopyingEventArgs.cs
- documentsequencetextcontainer.cs
- TraceContextRecord.cs
- ResXResourceWriter.cs
- TraceProvider.cs
- SortKey.cs
- EnumType.cs
- NetTcpBindingCollectionElement.cs
- DataErrorValidationRule.cs
- RawStylusInputCustomDataList.cs
- CroppedBitmap.cs
- CustomValidator.cs
- ExpressionHelper.cs
- sqlstateclientmanager.cs
- TextBox.cs
- ExpressionVisitorHelpers.cs
- AssemblySettingAttributes.cs
- MailHeaderInfo.cs
- MarginsConverter.cs
- _TimerThread.cs
- CustomTrackingQuery.cs
- MediaCommands.cs
- IApplicationTrustManager.cs
- KeyPressEvent.cs
- DataServices.cs
- _ScatterGatherBuffers.cs
- DirectoryInfo.cs
- QueryStringParameter.cs
- BuilderPropertyEntry.cs
- XmlWhitespace.cs
- BaseCodePageEncoding.cs
- NodeLabelEditEvent.cs
- FusionWrap.cs
- PrePostDescendentsWalker.cs
- FacetEnabledSchemaElement.cs
- SqlErrorCollection.cs
- ContextActivityUtils.cs
- SchemaInfo.cs
- XhtmlStyleClass.cs
- BitmapPalettes.cs
- ProjectionPath.cs
- XmlAttributeProperties.cs
- PtsHelper.cs
- StatusBar.cs
- ExtendedProtectionPolicy.cs
- CqlWriter.cs
- AsyncResult.cs
- PreloadHost.cs
- _LocalDataStoreMgr.cs
- EndpointConfigContainer.cs
- BindingBase.cs
- BinHexEncoder.cs
- ToolTipAutomationPeer.cs
- CustomLineCap.cs
- BaseWebProxyFinder.cs
- HtmlInputFile.cs
- Filter.cs
- FederatedMessageSecurityOverHttpElement.cs
- CompilationSection.cs
- QilVisitor.cs
- Transform3D.cs
- ConfigurationSettings.cs
- EnumMember.cs
- ControlBindingsConverter.cs
- PartialCachingAttribute.cs
- TypeToken.cs
- SerializationBinder.cs
- DrawingVisual.cs
- XLinq.cs
- KeyedCollection.cs
- util.cs
- ApplicationHost.cs
- CollectionViewGroup.cs
- AssemblyUtil.cs
- CookieProtection.cs
- TextServicesContext.cs
- XmlEntity.cs
- ScriptReferenceEventArgs.cs
- EntityException.cs
- tooltip.cs
- ThicknessAnimation.cs
- SettingsAttributeDictionary.cs
- NullableConverter.cs