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
- TableRowGroup.cs
- precedingquery.cs
- Section.cs
- ConnectionPoint.cs
- ListCollectionView.cs
- XhtmlCssHandler.cs
- LinqDataSourceView.cs
- Missing.cs
- ProvidePropertyAttribute.cs
- SerializationSectionGroup.cs
- SecurityProtocolCorrelationState.cs
- HttpDictionary.cs
- TextProperties.cs
- While.cs
- ScrollChrome.cs
- DetailsViewRowCollection.cs
- DataKeyArray.cs
- XmlSerializationWriter.cs
- NotifyParentPropertyAttribute.cs
- SamlDoNotCacheCondition.cs
- RemoteAsymmetricSignatureFormatter.cs
- dataprotectionpermission.cs
- Repeater.cs
- WebServiceHostFactory.cs
- TransformConverter.cs
- DesignerImageAdapter.cs
- EntityDataSourceState.cs
- RadioButtonBaseAdapter.cs
- RenameRuleObjectDialog.Designer.cs
- Effect.cs
- KeyMatchBuilder.cs
- PaperSize.cs
- ListenerServiceInstallComponent.cs
- RedistVersionInfo.cs
- PermissionListSet.cs
- Unit.cs
- UnknownWrapper.cs
- Graph.cs
- Image.cs
- RegexGroupCollection.cs
- ThrowOnMultipleAssignment.cs
- TextSchema.cs
- WebControlsSection.cs
- BinarySerializer.cs
- SQLInt16.cs
- TypeGeneratedEventArgs.cs
- EntityDataSourceValidationException.cs
- WebException.cs
- SiteOfOriginPart.cs
- CroppedBitmap.cs
- BitmapCodecInfoInternal.cs
- DtcInterfaces.cs
- SerializableTypeCodeDomSerializer.cs
- FontFamilyIdentifier.cs
- WebExceptionStatus.cs
- ListViewItemSelectionChangedEvent.cs
- SystemWebCachingSectionGroup.cs
- XPathConvert.cs
- SmtpFailedRecipientsException.cs
- DSASignatureFormatter.cs
- CompilerInfo.cs
- newitemfactory.cs
- HtmlInputText.cs
- ConstructorBuilder.cs
- LongValidator.cs
- DbConnectionPoolCounters.cs
- DataGridAddNewRow.cs
- _ProxyChain.cs
- FontStyle.cs
- QueryRewriter.cs
- XmlSchemaSimpleTypeRestriction.cs
- TypedServiceOperationListItem.cs
- NamespaceMapping.cs
- BaseTemplateBuildProvider.cs
- HtmlInputControl.cs
- PageCatalogPart.cs
- RequestResizeEvent.cs
- SQLSingle.cs
- FixedDocument.cs
- ServiceMetadataBehavior.cs
- StyleCollection.cs
- NaturalLanguageHyphenator.cs
- OleDbDataReader.cs
- XmlSiteMapProvider.cs
- PolyLineSegment.cs
- Popup.cs
- NativeMethodsOther.cs
- AppDomainUnloadedException.cs
- ColorConverter.cs
- SqlConnectionString.cs
- ControlBindingsCollection.cs
- SessionStateUtil.cs
- TextClipboardData.cs
- AnimationLayer.cs
- UserControl.cs
- ProcessExitedException.cs
- Convert.cs
- NameObjectCollectionBase.cs
- SystemDiagnosticsSection.cs
- BinaryWriter.cs