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
- DATA_BLOB.cs
- NavigationHelper.cs
- PrimaryKeyTypeConverter.cs
- DataServiceException.cs
- HostingEnvironment.cs
- TokenBasedSet.cs
- TextUtf8RawTextWriter.cs
- LineServices.cs
- SqlResolver.cs
- ElementsClipboardData.cs
- HasCopySemanticsAttribute.cs
- PrePrepareMethodAttribute.cs
- ReflectionHelper.cs
- EntityWithChangeTrackerStrategy.cs
- StatusInfoItem.cs
- DivideByZeroException.cs
- StaticExtension.cs
- SqlResolver.cs
- CookieParameter.cs
- SqlFormatter.cs
- SystemIPv6InterfaceProperties.cs
- TypeUtils.cs
- SHA256.cs
- ScriptManagerProxy.cs
- FrugalMap.cs
- VectorAnimationBase.cs
- ProvidersHelper.cs
- SupportedAddressingMode.cs
- TraceUtility.cs
- JsonSerializer.cs
- RenderTargetBitmap.cs
- TemplateKeyConverter.cs
- FlowLayoutSettings.cs
- PrintController.cs
- TextBreakpoint.cs
- GlobalEventManager.cs
- SafeHandle.cs
- InstanceStore.cs
- ProfileWorkflowElement.cs
- TemplateXamlParser.cs
- MILUtilities.cs
- DataObjectPastingEventArgs.cs
- srgsitem.cs
- XamlTreeBuilder.cs
- SchemaTypeEmitter.cs
- UInt16Converter.cs
- DocumentReferenceCollection.cs
- TextEditorCopyPaste.cs
- PasswordPropertyTextAttribute.cs
- AddInContractAttribute.cs
- TagMapInfo.cs
- BuildProvidersCompiler.cs
- AppSettingsExpressionBuilder.cs
- Assign.cs
- ObjectSecurity.cs
- SchemaNotation.cs
- EditorServiceContext.cs
- ProviderMetadata.cs
- OleDbStruct.cs
- RichTextBoxContextMenu.cs
- XmlnsCompatibleWithAttribute.cs
- OracleString.cs
- KnowledgeBase.cs
- HitTestParameters.cs
- Mapping.cs
- CodeExpressionStatement.cs
- SafeNativeMethods.cs
- AnnotationHighlightLayer.cs
- TraceContext.cs
- SkinBuilder.cs
- PkcsUtils.cs
- AutomationIdentifierGuids.cs
- ZipIOExtraFieldPaddingElement.cs
- ReflectEventDescriptor.cs
- XmlComplianceUtil.cs
- dsa.cs
- DefaultShape.cs
- PointConverter.cs
- TraceUtility.cs
- ConfigurationException.cs
- FontFamilyIdentifier.cs
- TypedElement.cs
- SHA1.cs
- DBCommandBuilder.cs
- StylusPlugInCollection.cs
- SoapExtensionTypeElementCollection.cs
- KoreanCalendar.cs
- ClassDataContract.cs
- Accessible.cs
- CfgArc.cs
- Pair.cs
- DataGridView.cs
- QueryExecutionOption.cs
- HttpWebRequest.cs
- Page.cs
- BamlLocalizationDictionary.cs
- PermissionSetTriple.cs
- DbExpressionVisitor.cs
- Lasso.cs
- WorkflowApplicationException.cs