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
- XPathNode.cs
- TextFormatterImp.cs
- StringFreezingAttribute.cs
- SqlInternalConnection.cs
- XmlILOptimizerVisitor.cs
- SmiEventSink_Default.cs
- Selector.cs
- EdgeProfileValidation.cs
- PropertyValidationContext.cs
- OdbcConnectionOpen.cs
- GridViewCellAutomationPeer.cs
- IconEditor.cs
- CharAnimationBase.cs
- CompoundFileStreamReference.cs
- LambdaReference.cs
- InstanceLockTracking.cs
- BinaryObjectInfo.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- ListBoxAutomationPeer.cs
- RuleInfoComparer.cs
- Module.cs
- FacetValueContainer.cs
- NameGenerator.cs
- Types.cs
- Color.cs
- QilList.cs
- EmissiveMaterial.cs
- ColorConvertedBitmap.cs
- SystemException.cs
- DescendantQuery.cs
- SoapExtensionReflector.cs
- TrackingRecordPreFilter.cs
- X509Utils.cs
- ToolBarButton.cs
- TextElement.cs
- DataBindingCollection.cs
- WindowsListViewScroll.cs
- AuthenticodeSignatureInformation.cs
- HttpStreamFormatter.cs
- FileAuthorizationModule.cs
- ProfileService.cs
- CrossContextChannel.cs
- ValueType.cs
- HtmlTitle.cs
- versioninfo.cs
- ViewStateModeByIdAttribute.cs
- ProviderConnectionPointCollection.cs
- AutomationIdentifierGuids.cs
- ToolStripItemBehavior.cs
- DataGridViewTextBoxColumn.cs
- PasswordDeriveBytes.cs
- PeerValidationBehavior.cs
- NamedPipeChannelListener.cs
- InternalCache.cs
- URL.cs
- XmlSignificantWhitespace.cs
- ToolBarButtonClickEvent.cs
- OdbcCommand.cs
- EventRecord.cs
- versioninfo.cs
- TableCellsCollectionEditor.cs
- RoutedUICommand.cs
- XPathExpr.cs
- ValueTable.cs
- AlgoModule.cs
- SparseMemoryStream.cs
- SqlTriggerContext.cs
- SamlSecurityTokenAuthenticator.cs
- ControlBindingsCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- KnownBoxes.cs
- SchemaInfo.cs
- FormsAuthenticationUser.cs
- Journal.cs
- RSAOAEPKeyExchangeDeformatter.cs
- NativeMethods.cs
- ObjectViewQueryResultData.cs
- CorrelationTokenTypeConvertor.cs
- XmlElementAttributes.cs
- IisTraceWebEventProvider.cs
- OutputScopeManager.cs
- TransactionProtocolConverter.cs
- TypeForwardedFromAttribute.cs
- ApplicationGesture.cs
- ColumnResizeAdorner.cs
- ObjectPropertyMapping.cs
- BamlRecords.cs
- Configuration.cs
- LazyInitializer.cs
- IntSecurity.cs
- Number.cs
- WinCategoryAttribute.cs
- X509CertificateChain.cs
- WebHttpDispatchOperationSelectorData.cs
- ContractMethodParameterInfo.cs
- XmlSchemaSimpleType.cs
- _UncName.cs
- TokenBasedSet.cs
- GeneralTransform2DTo3DTo2D.cs
- OrthographicCamera.cs