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
- SafeProcessHandle.cs
- MetadataHelper.cs
- DynamicAttribute.cs
- TextSimpleMarkerProperties.cs
- DataErrorValidationRule.cs
- UnionExpr.cs
- StateItem.cs
- ArgumentNullException.cs
- StaticDataManager.cs
- PrintingPermissionAttribute.cs
- Light.cs
- _AcceptOverlappedAsyncResult.cs
- XmlILModule.cs
- BinaryObjectInfo.cs
- SafeSystemMetrics.cs
- ConfigurationProperty.cs
- DnsPermission.cs
- WebReferencesBuildProvider.cs
- NativeMethods.cs
- translator.cs
- SpeechUI.cs
- Frame.cs
- followingsibling.cs
- ArrayWithOffset.cs
- HitTestWithGeometryDrawingContextWalker.cs
- NullableLongAverageAggregationOperator.cs
- COM2PropertyDescriptor.cs
- ImageList.cs
- ImageField.cs
- CultureInfoConverter.cs
- PointConverter.cs
- PropertyGroupDescription.cs
- MetadataWorkspace.cs
- HTTPRemotingHandler.cs
- SynchronizedDispatch.cs
- PipelineDeploymentState.cs
- EdmEntityTypeAttribute.cs
- CrossSiteScriptingValidation.cs
- TimeSpan.cs
- MultiPropertyDescriptorGridEntry.cs
- ConfigXmlDocument.cs
- SynchronizedDispatch.cs
- ClientRuntime.cs
- WebBrowserProgressChangedEventHandler.cs
- ClassicBorderDecorator.cs
- HandlerMappingMemo.cs
- ListViewGroupCollectionEditor.cs
- PointCollectionValueSerializer.cs
- FontStyle.cs
- CollectionEditVerbManager.cs
- XPathAncestorQuery.cs
- CfgSemanticTag.cs
- Context.cs
- RoutedEvent.cs
- ListViewInsertEventArgs.cs
- MethodExpr.cs
- RunWorkerCompletedEventArgs.cs
- ConstructorExpr.cs
- TailCallAnalyzer.cs
- Int32Animation.cs
- ConvertEvent.cs
- PenThreadPool.cs
- DataGridViewColumnConverter.cs
- RegistryHandle.cs
- FixedElement.cs
- EventLogPermissionAttribute.cs
- XmlSchemaAppInfo.cs
- ToolboxBitmapAttribute.cs
- ThicknessAnimationBase.cs
- TypeConverterAttribute.cs
- TailCallAnalyzer.cs
- LinqDataView.cs
- CreateUserWizard.cs
- AmbiguousMatchException.cs
- CalendarItem.cs
- DataGridCellsPanel.cs
- StrokeNode.cs
- WinCategoryAttribute.cs
- SetMemberBinder.cs
- diagnosticsswitches.cs
- embossbitmapeffect.cs
- RowVisual.cs
- WebResponse.cs
- FixedTextPointer.cs
- ViewCellRelation.cs
- DefaultValueAttribute.cs
- GrowingArray.cs
- DocumentsTrace.cs
- ImplicitInputBrush.cs
- BitmapSource.cs
- GifBitmapEncoder.cs
- XmlChildEnumerator.cs
- ToolStripItemEventArgs.cs
- RelatedView.cs
- HandoffBehavior.cs
- HtmlTableCell.cs
- DataGridViewControlCollection.cs
- RolePrincipal.cs
- Composition.cs
- BinaryUtilClasses.cs