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
- SamlAuthenticationStatement.cs
- ButtonFlatAdapter.cs
- SeekStoryboard.cs
- TextEditorTyping.cs
- ApplicationGesture.cs
- DataGrid.cs
- TemplateControl.cs
- XamlBrushSerializer.cs
- MemberRelationshipService.cs
- DataBoundControlAdapter.cs
- GatewayIPAddressInformationCollection.cs
- shaperfactoryquerycacheentry.cs
- EventsTab.cs
- EntityViewGenerator.cs
- AttributeUsageAttribute.cs
- XamlStyleSerializer.cs
- AppSecurityManager.cs
- PageMediaSize.cs
- PriorityQueue.cs
- Configuration.cs
- ProfileProvider.cs
- ServiceMemoryGates.cs
- TabPageDesigner.cs
- ASCIIEncoding.cs
- WeakKeyDictionary.cs
- Serializer.cs
- BaseWebProxyFinder.cs
- HtmlTitle.cs
- TreeView.cs
- AudioBase.cs
- Form.cs
- EventRecord.cs
- QueryAccessibilityHelpEvent.cs
- HtmlProps.cs
- ContextInformation.cs
- ConstraintEnumerator.cs
- PriorityChain.cs
- CodeTypeParameterCollection.cs
- SHA384.cs
- ExpressionEditorAttribute.cs
- MatrixStack.cs
- EntityModelSchemaGenerator.cs
- ContentPresenter.cs
- KeyValuePair.cs
- StrokeCollection.cs
- StringFormat.cs
- MetadataPropertyCollection.cs
- RequestCachePolicyConverter.cs
- AutomationEventArgs.cs
- ListenerBinder.cs
- XmlAttributeAttribute.cs
- CalloutQueueItem.cs
- StylusSystemGestureEventArgs.cs
- XmlSchemaValidationException.cs
- Point3DCollection.cs
- LinkButton.cs
- FileLogRecord.cs
- SqlConnectionHelper.cs
- TimeSpanSecondsConverter.cs
- TableRow.cs
- TextTreeTextNode.cs
- DataGridRow.cs
- PrtTicket_Public.cs
- ContextStack.cs
- ClaimTypeRequirement.cs
- ScalarOps.cs
- ping.cs
- EdmTypeAttribute.cs
- Double.cs
- ContentElementAutomationPeer.cs
- FixedSOMPage.cs
- X509Extension.cs
- KnownBoxes.cs
- CommandBindingCollection.cs
- ProgressBarBrushConverter.cs
- ByteKeyFrameCollection.cs
- ListItem.cs
- DocumentOrderComparer.cs
- ConnectionPoolManager.cs
- TagNameToTypeMapper.cs
- X509Logo.cs
- CellConstantDomain.cs
- DataContext.cs
- SearchForVirtualItemEventArgs.cs
- lengthconverter.cs
- WizardStepBase.cs
- SystemUnicastIPAddressInformation.cs
- ImpersonateTokenRef.cs
- DataSourceXmlSerializer.cs
- ZipQueryOperator.cs
- StringFormat.cs
- ListControlDataBindingHandler.cs
- ObjRef.cs
- HttpServerProtocol.cs
- dataprotectionpermissionattribute.cs
- VectorAnimation.cs
- peernodestatemanager.cs
- DocumentDesigner.cs
- ByteStreamGeometryContext.cs
- DeviceContext2.cs