Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AdPostCacheSubstitution.cs
- SystemIPInterfaceProperties.cs
- StringKeyFrameCollection.cs
- Or.cs
- FormsAuthenticationUserCollection.cs
- NativeStructs.cs
- CodeIdentifier.cs
- CapabilitiesUse.cs
- ThreadStartException.cs
- BufferedWebEventProvider.cs
- List.cs
- ImageClickEventArgs.cs
- StructuralCache.cs
- XPathDescendantIterator.cs
- PaperSource.cs
- XmlParser.cs
- DataSourceSelectArguments.cs
- DataSourceNameHandler.cs
- _ListenerRequestStream.cs
- DataControlPagerLinkButton.cs
- SqlProvider.cs
- EntityDataSourceConfigureObjectContext.cs
- AlternateViewCollection.cs
- CodeDirectionExpression.cs
- WithParamAction.cs
- GraphicsPathIterator.cs
- ValueChangedEventManager.cs
- ExpandCollapseProviderWrapper.cs
- OrCondition.cs
- DbProviderManifest.cs
- OutputCacheSettingsSection.cs
- CultureSpecificCharacterBufferRange.cs
- DataGridViewBindingCompleteEventArgs.cs
- CodeTypeReferenceCollection.cs
- LabelExpression.cs
- SafeMemoryMappedViewHandle.cs
- ZipPackage.cs
- DataTableExtensions.cs
- DbConnectionClosed.cs
- MultitargetingHelpers.cs
- NonVisualControlAttribute.cs
- RegexCaptureCollection.cs
- SQLChars.cs
- ListMarkerLine.cs
- RemoteWebConfigurationHostStream.cs
- NameValueConfigurationElement.cs
- SqlConnectionString.cs
- QilTargetType.cs
- GenericWebPart.cs
- CollectionChangeEventArgs.cs
- ManagementScope.cs
- HttpCacheVaryByContentEncodings.cs
- IgnoreFlushAndCloseStream.cs
- EventlogProvider.cs
- PageRequestManager.cs
- DetailsViewInsertedEventArgs.cs
- CollectionViewProxy.cs
- XPathArrayIterator.cs
- Gdiplus.cs
- ResolveMatches11.cs
- BlockUIContainer.cs
- UnorderedHashRepartitionStream.cs
- BindingMemberInfo.cs
- SoapTypeAttribute.cs
- LinearGradientBrush.cs
- ProfilePropertySettingsCollection.cs
- DataGridTextBoxColumn.cs
- MetadataCollection.cs
- KeyEventArgs.cs
- XmlWriter.cs
- RadioButton.cs
- DbConnectionFactory.cs
- WrappedReader.cs
- FlowDocumentPaginator.cs
- AttributeTable.cs
- CodeSubDirectoriesCollection.cs
- FragmentQueryProcessor.cs
- XPathAxisIterator.cs
- PropertyReferenceSerializer.cs
- AnnotationComponentChooser.cs
- ImpersonateTokenRef.cs
- ApplicationCommands.cs
- SecureUICommand.cs
- COM2TypeInfoProcessor.cs
- NamedElement.cs
- WebPartChrome.cs
- UnionExpr.cs
- PreviewPageInfo.cs
- MSAAWinEventWrap.cs
- TrackingQuery.cs
- ExpressionVisitor.cs
- FlowSwitch.cs
- UdpSocketReceiveManager.cs
- NonSerializedAttribute.cs
- ListViewPagedDataSource.cs
- SrgsDocumentParser.cs
- DataGridViewCellCancelEventArgs.cs
- TemplatedWizardStep.cs
- DesignerFrame.cs
- BamlTreeMap.cs