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
- IDQuery.cs
- CommentEmitter.cs
- ApplicationDirectory.cs
- ResourceManagerWrapper.cs
- EventWaitHandle.cs
- NavigationExpr.cs
- AnnotationService.cs
- DataRowExtensions.cs
- CreateBookmarkScope.cs
- ScriptResourceMapping.cs
- ClientBuildManagerCallback.cs
- EntityCommandCompilationException.cs
- SmtpMail.cs
- DateTimeFormat.cs
- MetadataArtifactLoaderCompositeResource.cs
- CachedFontFamily.cs
- Duration.cs
- SpeakProgressEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- ResourceWriter.cs
- ObjectRef.cs
- InputReportEventArgs.cs
- Literal.cs
- BaseProcessor.cs
- StringArrayConverter.cs
- GreaterThan.cs
- Filter.cs
- SectionUpdates.cs
- ListManagerBindingsCollection.cs
- DataGridViewLinkCell.cs
- ToolstripProfessionalRenderer.cs
- EmptyElement.cs
- PenLineJoinValidation.cs
- UnsafeNativeMethods.cs
- ClientCultureInfo.cs
- DesignerActionGlyph.cs
- shaperfactoryquerycacheentry.cs
- XmlLinkedNode.cs
- SequentialUshortCollection.cs
- SequentialUshortCollection.cs
- ParallelForEach.cs
- GetResponse.cs
- DashStyle.cs
- Paragraph.cs
- TextContainerHelper.cs
- Wildcard.cs
- FormatException.cs
- FtpRequestCacheValidator.cs
- SafeRightsManagementSessionHandle.cs
- CodeAccessSecurityEngine.cs
- BlurBitmapEffect.cs
- ThemeableAttribute.cs
- XmlStreamStore.cs
- elementinformation.cs
- DBCSCodePageEncoding.cs
- XmlNavigatorStack.cs
- XmlChildNodes.cs
- HtmlInputPassword.cs
- XmlSerializableServices.cs
- Certificate.cs
- X509Certificate.cs
- WebPartConnectionsConfigureVerb.cs
- ListBoxChrome.cs
- RowsCopiedEventArgs.cs
- SqlVisitor.cs
- PrintDialog.cs
- SqlNotificationEventArgs.cs
- SQlBooleanStorage.cs
- _FtpControlStream.cs
- TextServicesDisplayAttribute.cs
- TextElement.cs
- CookieParameter.cs
- PageSettings.cs
- DeleteHelper.cs
- BindingWorker.cs
- StorageBasedPackageProperties.cs
- ObfuscateAssemblyAttribute.cs
- SmtpFailedRecipientException.cs
- GridViewColumnCollection.cs
- TableStyle.cs
- HexParser.cs
- MembershipAdapter.cs
- BitStream.cs
- TableStyle.cs
- ExternalFile.cs
- GcSettings.cs
- PointF.cs
- XmlParserContext.cs
- PropertyGridView.cs
- QueryRewriter.cs
- Random.cs
- IdentityHolder.cs
- SettingsPropertyIsReadOnlyException.cs
- EpmCustomContentDeSerializer.cs
- MinimizableAttributeTypeConverter.cs
- TreeViewDataItemAutomationPeer.cs
- ValidationSummary.cs
- DataGridViewCellFormattingEventArgs.cs
- DataGridViewRowEventArgs.cs
- Path.cs