Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / OleDb / OleDbInfoMessageEvent.cs / 1305376 / OleDbInfoMessageEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.OleDb {
using System;
using System.Diagnostics;
public sealed class OleDbInfoMessageEventArgs : System.EventArgs {
readonly private OleDbException exception;
internal OleDbInfoMessageEventArgs(OleDbException exception) {
Debug.Assert(null != exception, "OleDbInfoMessageEventArgs without OleDbException");
this.exception = exception;
}
public int ErrorCode {
get {
return this.exception.ErrorCode;
}
}
public OleDbErrorCollection Errors {
get {
return this.exception.Errors;
}
}
internal bool ShouldSerializeErrors() { // MDAC 65548
return this.exception.ShouldSerializeErrors();
}
public string Message {
get {
return this.exception.Message;
}
}
public string Source {
get {
return this.exception.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.
//
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.OleDb {
using System;
using System.Diagnostics;
public sealed class OleDbInfoMessageEventArgs : System.EventArgs {
readonly private OleDbException exception;
internal OleDbInfoMessageEventArgs(OleDbException exception) {
Debug.Assert(null != exception, "OleDbInfoMessageEventArgs without OleDbException");
this.exception = exception;
}
public int ErrorCode {
get {
return this.exception.ErrorCode;
}
}
public OleDbErrorCollection Errors {
get {
return this.exception.Errors;
}
}
internal bool ShouldSerializeErrors() { // MDAC 65548
return this.exception.ShouldSerializeErrors();
}
public string Message {
get {
return this.exception.Message;
}
}
public string Source {
get {
return this.exception.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
- filewebresponse.cs
- Keywords.cs
- Registry.cs
- RadioButtonList.cs
- FilteredReadOnlyMetadataCollection.cs
- GridViewRow.cs
- XomlCompilerParameters.cs
- CodeArrayIndexerExpression.cs
- ScriptingAuthenticationServiceSection.cs
- XPathParser.cs
- ProfileSettingsCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- ReachDocumentReferenceCollectionSerializer.cs
- AvTrace.cs
- ValidationService.cs
- ColumnClickEvent.cs
- EventLogPermission.cs
- ValidationResult.cs
- HttpRawResponse.cs
- DBParameter.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- CustomErrorCollection.cs
- DataStreams.cs
- HandoffBehavior.cs
- BitmapEffectDrawingContent.cs
- XmlSchemaAttributeGroup.cs
- SystemIPv6InterfaceProperties.cs
- Int16KeyFrameCollection.cs
- CommandValueSerializer.cs
- DesignRelationCollection.cs
- UTF8Encoding.cs
- WsatAdminException.cs
- EntryIndex.cs
- XPathSelectionIterator.cs
- AttributeXamlType.cs
- OracleParameterBinding.cs
- CodeTypeReferenceSerializer.cs
- QuadraticBezierSegment.cs
- XmlSiteMapProvider.cs
- ObjectDataSourceDisposingEventArgs.cs
- CodeTypeDeclarationCollection.cs
- safemediahandle.cs
- WebPartConnectionsCancelEventArgs.cs
- HandlerBase.cs
- HandleCollector.cs
- CodeDirectiveCollection.cs
- FrameworkElementAutomationPeer.cs
- OutputScope.cs
- XmlEntityReference.cs
- DataGridViewColumnStateChangedEventArgs.cs
- OdbcParameterCollection.cs
- GridViewCommandEventArgs.cs
- ProfileSettingsCollection.cs
- StringUtil.cs
- httpapplicationstate.cs
- AutomationProperty.cs
- CounterSample.cs
- LocationReferenceEnvironment.cs
- SecureEnvironment.cs
- Int64AnimationBase.cs
- RadialGradientBrush.cs
- HandlerMappingMemo.cs
- TrustLevelCollection.cs
- IndexedGlyphRun.cs
- GridViewUpdateEventArgs.cs
- TypeReference.cs
- HttpRuntimeSection.cs
- PeerApplicationLaunchInfo.cs
- CounterCreationDataConverter.cs
- FilterableAttribute.cs
- DetailsViewModeEventArgs.cs
- UseAttributeSetsAction.cs
- Convert.cs
- SEHException.cs
- ShaderRenderModeValidation.cs
- ArrayTypeMismatchException.cs
- TrustLevelCollection.cs
- HandlerBase.cs
- SqlClientPermission.cs
- DBCommandBuilder.cs
- ActivationServices.cs
- DriveInfo.cs
- CachedFontFamily.cs
- __ComObject.cs
- TempFiles.cs
- SortedDictionary.cs
- ExpressionVisitor.cs
- XmlWriterDelegator.cs
- ScopelessEnumAttribute.cs
- XhtmlBasicFormAdapter.cs
- WebSysDescriptionAttribute.cs
- log.cs
- ProtectedConfigurationSection.cs
- ConfigXmlElement.cs
- SqlInternalConnectionTds.cs
- RequestQueue.cs
- MappedMetaModel.cs
- BatchServiceHost.cs
- DynamicDiscoSearcher.cs
- StatusBarItemAutomationPeer.cs