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 / OleDb / OleDbInfoMessageEvent.cs / 1 / OleDbInfoMessageEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.OleDb {
using System;
using System.Diagnostics;
#if WINFSInternalOnly
internal
#else
public
#endif
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;
#if WINFSInternalOnly
internal
#else
public
#endif
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
- Size.cs
- StoreContentChangedEventArgs.cs
- LockCookie.cs
- CheckBox.cs
- ApplicationFileParser.cs
- CacheEntry.cs
- CodeLinePragma.cs
- BaseAppDomainProtocolHandler.cs
- Sentence.cs
- webeventbuffer.cs
- Set.cs
- VSWCFServiceContractGenerator.cs
- SendMessageRecord.cs
- FrameworkElement.cs
- TransactionProxy.cs
- mda.cs
- GlobalizationAssembly.cs
- InkCanvasInnerCanvas.cs
- SchemaAttDef.cs
- GACIdentityPermission.cs
- DBSqlParserColumnCollection.cs
- Roles.cs
- ToolStripSeparatorRenderEventArgs.cs
- TableColumn.cs
- ProtocolsConfigurationEntry.cs
- ChineseLunisolarCalendar.cs
- ManagedFilter.cs
- XmlCountingReader.cs
- SecurityKeyIdentifier.cs
- PackWebResponse.cs
- AddressAccessDeniedException.cs
- InstanceCollisionException.cs
- RegexBoyerMoore.cs
- StringCollection.cs
- XmlNamespaceManager.cs
- Point3DAnimation.cs
- TemplatePropertyEntry.cs
- InvariantComparer.cs
- DescendantQuery.cs
- TabItemWrapperAutomationPeer.cs
- EntityContainerEntitySet.cs
- GridViewCommandEventArgs.cs
- XslTransform.cs
- ObjectNotFoundException.cs
- EncodingStreamWrapper.cs
- PtsHelper.cs
- Collection.cs
- GridSplitter.cs
- BaseHashHelper.cs
- loginstatus.cs
- ConnectionProviderAttribute.cs
- WebEventCodes.cs
- RegexStringValidatorAttribute.cs
- LocationUpdates.cs
- ValueCollectionParameterReader.cs
- ClientScriptManager.cs
- MethodAccessException.cs
- SettingsSavedEventArgs.cs
- _ConnectionGroup.cs
- WsdlBuildProvider.cs
- OptimizedTemplateContentHelper.cs
- StringDictionaryCodeDomSerializer.cs
- DeleteStoreRequest.cs
- StreamInfo.cs
- DataGridItemCollection.cs
- WindowsSecurityToken.cs
- SerializableTypeCodeDomSerializer.cs
- XPathDescendantIterator.cs
- DetailsView.cs
- HwndHostAutomationPeer.cs
- XsltArgumentList.cs
- HttpRawResponse.cs
- SqlNodeTypeOperators.cs
- IPEndPointCollection.cs
- DispatcherObject.cs
- _IPv6Address.cs
- HotCommands.cs
- WorkflowViewStateService.cs
- PartitionResolver.cs
- UnsafeNativeMethods.cs
- SoapHeaderException.cs
- __Filters.cs
- OdbcErrorCollection.cs
- OracleRowUpdatingEventArgs.cs
- PartialTrustVisibleAssembliesSection.cs
- SqlCacheDependencyDatabase.cs
- DataSysAttribute.cs
- CompositeDuplexBindingElementImporter.cs
- StagingAreaInputItem.cs
- CustomAttributeSerializer.cs
- RequestCache.cs
- AlphabeticalEnumConverter.cs
- ConfigurationPermission.cs
- ScaleTransform3D.cs
- BaseParagraph.cs
- OleDbConnectionInternal.cs
- RequestQueue.cs
- SecurityElement.cs
- OutOfMemoryException.cs
- ContainerParagraph.cs