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
- TypeInitializationException.cs
- WebColorConverter.cs
- Binding.cs
- QilInvokeLateBound.cs
- StaticSiteMapProvider.cs
- TextBoxView.cs
- ClientSponsor.cs
- WebPartTransformer.cs
- securestring.cs
- MouseCaptureWithinProperty.cs
- BitmapEffectDrawing.cs
- EndpointBehaviorElement.cs
- DataGridViewSelectedRowCollection.cs
- ValidationErrorEventArgs.cs
- DataColumnCollection.cs
- MinimizableAttributeTypeConverter.cs
- AncillaryOps.cs
- ColorKeyFrameCollection.cs
- ComplexLine.cs
- EventPropertyMap.cs
- Graphics.cs
- AnimationStorage.cs
- OleDbError.cs
- SchemaElementDecl.cs
- DocumentSequenceHighlightLayer.cs
- LinearGradientBrush.cs
- AssociationProvider.cs
- ResourceAttributes.cs
- HtmlControl.cs
- AssociationSet.cs
- MessageQuerySet.cs
- ComponentEvent.cs
- ListViewSortEventArgs.cs
- ToolStripComboBox.cs
- ImpersonateTokenRef.cs
- Rotation3DAnimationUsingKeyFrames.cs
- QilPatternFactory.cs
- Win32SafeHandles.cs
- DisposableCollectionWrapper.cs
- SystemMulticastIPAddressInformation.cs
- PlainXmlWriter.cs
- SQLByte.cs
- XamlPathDataSerializer.cs
- RuleSetDialog.cs
- FilePresentation.cs
- ColumnMapVisitor.cs
- SplashScreen.cs
- SelectionEditor.cs
- SafeRegistryHandle.cs
- TableLayoutStyle.cs
- TypeBuilder.cs
- DocumentGrid.cs
- UInt16Storage.cs
- EffectiveValueEntry.cs
- HandlerWithFactory.cs
- CheckBox.cs
- FixedTextSelectionProcessor.cs
- WebEventCodes.cs
- AppDomainUnloadedException.cs
- DecodeHelper.cs
- FocusManager.cs
- WebPartUtil.cs
- DelimitedListTraceListener.cs
- UnmanagedMemoryStreamWrapper.cs
- OleStrCAMarshaler.cs
- GuidTagList.cs
- AdornerDecorator.cs
- PolygonHotSpot.cs
- HttpApplication.cs
- Vector3D.cs
- ToolboxDataAttribute.cs
- ScriptMethodAttribute.cs
- ScriptResourceHandler.cs
- WindowsSecurityToken.cs
- BamlLocalizationDictionary.cs
- FileDialogCustomPlaces.cs
- _emptywebproxy.cs
- SafeMILHandle.cs
- WsdlBuildProvider.cs
- RunInstallerAttribute.cs
- StringAnimationBase.cs
- LocalizabilityAttribute.cs
- BoundPropertyEntry.cs
- VirtualDirectoryMapping.cs
- ValueType.cs
- XmlEntity.cs
- ColumnCollection.cs
- ProxyWebPartConnectionCollection.cs
- dataprotectionpermission.cs
- LogicalExpr.cs
- CellConstant.cs
- RemoteWebConfigurationHostStream.cs
- State.cs
- VectorCollectionConverter.cs
- SplitterPanel.cs
- SafeLocalAllocation.cs
- HttpDictionary.cs
- XPathParser.cs
- StackSpiller.Generated.cs
- XmlSchemaInfo.cs