Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1 / SqlDataSourceStatusEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.Collections.Specialized;
using System.Data;
using System.Data.Common;
using System.Security.Permissions;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class SqlDataSourceStatusEventArgs : EventArgs {
private DbCommand _command;
private Exception _exception;
private bool _exceptionHandled;
private int _affectedRows;
public SqlDataSourceStatusEventArgs(DbCommand command, int affectedRows, Exception exception) : base() {
_command = command;
_affectedRows = affectedRows;
_exception = exception;
}
public int AffectedRows {
get {
return _affectedRows;
}
}
public DbCommand Command {
get {
return _command;
}
}
///
/// If an exception was thrown by the command, this property will contain the exception.
/// If there was no exception, the value will be null.
///
public Exception Exception {
get {
return _exception;
}
}
///
/// If you wish to handle the exception using your own logic, set this value to true for it to be ignored by the control.
/// If an exception was thrown and this value remains false, the exception will be re-thrown by the control.
///
public bool ExceptionHandled {
get {
return _exceptionHandled;
}
set {
_exceptionHandled = value;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SystemIPv6InterfaceProperties.cs
- MergablePropertyAttribute.cs
- Latin1Encoding.cs
- QueryBranchOp.cs
- Control.cs
- CommandSet.cs
- Signature.cs
- BitmapVisualManager.cs
- TreeChangeInfo.cs
- DecoderExceptionFallback.cs
- CaseStatement.cs
- ThreadAbortException.cs
- KeyConverter.cs
- CollectionViewGroupRoot.cs
- ControlIdConverter.cs
- _ListenerResponseStream.cs
- NotifyCollectionChangedEventArgs.cs
- PrintingPermission.cs
- Span.cs
- ManagementScope.cs
- ItemsControl.cs
- TdsValueSetter.cs
- WebPartVerbCollection.cs
- DependencyPropertyConverter.cs
- TextWriter.cs
- NativeMethods.cs
- TogglePattern.cs
- DesignerVerbCollection.cs
- AvTraceFormat.cs
- SourceSwitch.cs
- SymmetricCryptoHandle.cs
- CopyAction.cs
- MediaContext.cs
- XmlFormatExtensionPointAttribute.cs
- AtomicFile.cs
- AlgoModule.cs
- RowBinding.cs
- OutputCacheSettingsSection.cs
- DateTimeOffset.cs
- Errors.cs
- TextBox.cs
- TrustManagerMoreInformation.cs
- DefaultWorkflowLoaderService.cs
- ResXDataNode.cs
- PageCatalogPartDesigner.cs
- CorrelationService.cs
- RegexCaptureCollection.cs
- Events.cs
- QueryParameter.cs
- SqlExpressionNullability.cs
- WindowsRichEdit.cs
- RangeContentEnumerator.cs
- NotImplementedException.cs
- DataObject.cs
- PrefixHandle.cs
- FilePrompt.cs
- ReadOnlyDictionary.cs
- Main.cs
- TdsEnums.cs
- EmptyEnumerator.cs
- ConfigurationSettings.cs
- GroupBoxRenderer.cs
- UriPrefixTable.cs
- XmlDownloadManager.cs
- SettingsPropertyValue.cs
- Point3DCollection.cs
- UserControl.cs
- InputLanguageProfileNotifySink.cs
- XPathCompileException.cs
- IPCCacheManager.cs
- EntityProviderServices.cs
- EmptyControlCollection.cs
- HttpCookie.cs
- RoleBoolean.cs
- TextComposition.cs
- CallContext.cs
- ContentValidator.cs
- GenericXmlSecurityTokenAuthenticator.cs
- SqlError.cs
- DbConnectionStringBuilder.cs
- SetIndexBinder.cs
- SqlTriggerContext.cs
- ReadOnlyDictionary.cs
- BooleanFunctions.cs
- SqlSupersetValidator.cs
- ItemsControl.cs
- LinearQuaternionKeyFrame.cs
- _UriTypeConverter.cs
- DocumentCollection.cs
- ListViewItemMouseHoverEvent.cs
- ModelItemDictionaryImpl.cs
- PropertyGeneratedEventArgs.cs
- ByteRangeDownloader.cs
- DefaultTraceListener.cs
- UIElement3D.cs
- DrawListViewSubItemEventArgs.cs
- WebExceptionStatus.cs
- WaveHeader.cs
- SafeBitVector32.cs
- IpcChannel.cs