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
- DeadCharTextComposition.cs
- OperationCanceledException.cs
- SecurityToken.cs
- ShellProvider.cs
- StoreContentChangedEventArgs.cs
- StructuredTypeEmitter.cs
- RsaSecurityTokenParameters.cs
- DeleteStoreRequest.cs
- VisualBasicSettingsHandler.cs
- ModelTreeManager.cs
- FormatException.cs
- ConnectionPointGlyph.cs
- VersionValidator.cs
- Button.cs
- TrackingStringDictionary.cs
- InputEventArgs.cs
- SqlNotificationEventArgs.cs
- IgnoreFileBuildProvider.cs
- ProcessInfo.cs
- WebConfigManager.cs
- CorruptingExceptionCommon.cs
- SqlEnums.cs
- LinearQuaternionKeyFrame.cs
- _ProxyChain.cs
- BinaryReader.cs
- DispatchChannelSink.cs
- Rss20ItemFormatter.cs
- PrintPreviewGraphics.cs
- XsltFunctions.cs
- BaseDataBoundControl.cs
- DbConnectionPoolOptions.cs
- NumberSubstitution.cs
- DataGridColumnDropSeparator.cs
- SimpleColumnProvider.cs
- WebConvert.cs
- CatalogPartCollection.cs
- Evidence.cs
- ObjectDataSourceMethodEditor.cs
- ClientBuildManager.cs
- UIAgentMonitorHandle.cs
- ACE.cs
- WebScriptMetadataMessageEncoderFactory.cs
- ExcCanonicalXml.cs
- DynamicEntity.cs
- DataControlLinkButton.cs
- Preprocessor.cs
- BinaryMethodMessage.cs
- LayoutInformation.cs
- HtmlTernaryTree.cs
- DelegatingHeader.cs
- XmlILConstructAnalyzer.cs
- List.cs
- cookiecontainer.cs
- ToolboxComponentsCreatedEventArgs.cs
- UriTemplateTable.cs
- XmlReturnWriter.cs
- SessionPageStatePersister.cs
- HtmlButton.cs
- XmlTypeMapping.cs
- XmlElementAttributes.cs
- relpropertyhelper.cs
- EditorPartCollection.cs
- CookieParameter.cs
- ActivityTypeResolver.xaml.cs
- AppSettingsExpressionBuilder.cs
- OleDbEnumerator.cs
- DataContractJsonSerializer.cs
- LogAppendAsyncResult.cs
- Binding.cs
- TableItemPatternIdentifiers.cs
- BaseCollection.cs
- BamlResourceContent.cs
- OdbcConnection.cs
- CodeIdentifier.cs
- InputMethod.cs
- SoapSchemaExporter.cs
- TrackingMemoryStream.cs
- Mutex.cs
- HScrollBar.cs
- XsltLoader.cs
- FieldMetadata.cs
- ForAllOperator.cs
- BinaryWriter.cs
- FrameworkTextComposition.cs
- OdbcConnectionString.cs
- SchemaMapping.cs
- ArrayTypeMismatchException.cs
- ToolStripDropDownDesigner.cs
- XslException.cs
- StringFormat.cs
- CloseCryptoHandleRequest.cs
- SchemaImporterExtension.cs
- AppSettingsExpressionBuilder.cs
- DeleteCardRequest.cs
- NGCSerializationManagerAsync.cs
- ErrorHandler.cs
- UserControl.cs
- AsymmetricKeyExchangeFormatter.cs
- StrongNameUtility.cs
- DictionaryContent.cs