Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Win32KeyboardDevice.cs
- HttpAsyncResult.cs
- DefaultProxySection.cs
- DateTimeConverter.cs
- SmtpFailedRecipientException.cs
- NegatedCellConstant.cs
- MemoryMappedView.cs
- DeploymentSection.cs
- BinaryUtilClasses.cs
- DbConnectionPool.cs
- CursorEditor.cs
- PolicyLevel.cs
- AdPostCacheSubstitution.cs
- ListChangedEventArgs.cs
- ConfigDefinitionUpdates.cs
- DecoderFallback.cs
- ContainerParaClient.cs
- QueryOperationResponseOfT.cs
- EncodingNLS.cs
- DeferredElementTreeState.cs
- CodeIterationStatement.cs
- Events.cs
- WebBrowserNavigatedEventHandler.cs
- ParameterReplacerVisitor.cs
- AutoCompleteStringCollection.cs
- LoadedEvent.cs
- XmlSchemaComplexType.cs
- ObjectFullSpanRewriter.cs
- MediaTimeline.cs
- basecomparevalidator.cs
- IDReferencePropertyAttribute.cs
- ConfigurationStrings.cs
- TextDecorations.cs
- PolyQuadraticBezierSegment.cs
- ProjectionPlanCompiler.cs
- TypeUnloadedException.cs
- PropertyInfoSet.cs
- FrameworkElementAutomationPeer.cs
- PersonalizationAdministration.cs
- TextStore.cs
- TypeCollectionDesigner.xaml.cs
- _ListenerRequestStream.cs
- DeviceContext2.cs
- RegexRunner.cs
- FloatAverageAggregationOperator.cs
- COM2PropertyBuilderUITypeEditor.cs
- Timeline.cs
- _PooledStream.cs
- SaveWorkflowAsyncResult.cs
- ReferentialConstraint.cs
- GeneralTransformGroup.cs
- TextDecorationCollection.cs
- XmlSchemaSimpleType.cs
- _ScatterGatherBuffers.cs
- SoapElementAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- ListViewItem.cs
- ExpressionNode.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TableRow.cs
- RuntimeWrappedException.cs
- XsltLoader.cs
- ResourceExpressionBuilder.cs
- GlyphsSerializer.cs
- AsyncStreamReader.cs
- listitem.cs
- TypedReference.cs
- OleDbConnection.cs
- CroppedBitmap.cs
- NullableConverter.cs
- SchemaNames.cs
- StringUtil.cs
- Accessors.cs
- LiteralTextParser.cs
- XmlCharCheckingWriter.cs
- AutomationElement.cs
- MutexSecurity.cs
- XmlSchemaChoice.cs
- ThreadExceptionDialog.cs
- ParallelTimeline.cs
- EventBuilder.cs
- TextDecorationCollection.cs
- TextSerializer.cs
- WSUtilitySpecificationVersion.cs
- FixedPosition.cs
- XmlLangPropertyAttribute.cs
- EventSinkHelperWriter.cs
- MenuItem.cs
- X500Name.cs
- TickBar.cs
- FileDialog_Vista.cs
- XamlSerializer.cs
- ImpersonationContext.cs
- SqlWebEventProvider.cs
- SqlReferenceCollection.cs
- WorkflowMarkupSerializationManager.cs
- TextRunCacheImp.cs
- CompositeActivityCodeGenerator.cs
- OutputCacheSection.cs
- Input.cs