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
- FlowDocumentPaginator.cs
- DocumentPaginator.cs
- GridViewColumn.cs
- Listen.cs
- ToolStripSettings.cs
- PersonalizationStateInfoCollection.cs
- FixedTextView.cs
- WebControlsSection.cs
- DetailsViewAutoFormat.cs
- HtmlShimManager.cs
- Pair.cs
- Win32KeyboardDevice.cs
- ErrorHandler.cs
- CodeAttachEventStatement.cs
- BlurBitmapEffect.cs
- KeyFrames.cs
- SecuritySessionClientSettings.cs
- StyleXamlParser.cs
- FullTextBreakpoint.cs
- webproxy.cs
- AbsoluteQuery.cs
- WorkflowElementDialog.cs
- BinaryVersion.cs
- ConfigUtil.cs
- DataGridViewUtilities.cs
- DropSourceBehavior.cs
- ListBoxItem.cs
- UpdatePanelTriggerCollection.cs
- DataGridTableCollection.cs
- IncrementalHitTester.cs
- Header.cs
- COM2Enum.cs
- ProxyWebPartConnectionCollection.cs
- IItemContainerGenerator.cs
- TextSimpleMarkerProperties.cs
- DataSetMappper.cs
- ApplicationActivator.cs
- TextEditorTables.cs
- ConfigXmlText.cs
- CallbackHandler.cs
- AccessDataSourceDesigner.cs
- TableProviderWrapper.cs
- WizardStepBase.cs
- ExceptionTrace.cs
- DelimitedListTraceListener.cs
- SecurityProtocol.cs
- SelectingProviderEventArgs.cs
- PersonalizationDictionary.cs
- NativeMethods.cs
- UnhandledExceptionEventArgs.cs
- TextEditorSelection.cs
- HeaderElement.cs
- GeometryHitTestParameters.cs
- ComboBoxRenderer.cs
- RuleEngine.cs
- EntityException.cs
- WebPartEventArgs.cs
- RequestDescription.cs
- CellNormalizer.cs
- ValueChangedEventManager.cs
- Condition.cs
- ForeignKeyFactory.cs
- InvokePatternIdentifiers.cs
- XmlNamespaceDeclarationsAttribute.cs
- DbConnectionHelper.cs
- ScrollPattern.cs
- SqlProfileProvider.cs
- WebPermission.cs
- SmiRecordBuffer.cs
- Win32.cs
- SHA1Managed.cs
- PageHandlerFactory.cs
- CssClassPropertyAttribute.cs
- EndCreateSecurityTokenRequest.cs
- PeerNameRecordCollection.cs
- CngKeyCreationParameters.cs
- SspiSafeHandles.cs
- MailHeaderInfo.cs
- DataErrorValidationRule.cs
- SecurityContext.cs
- OdbcDataReader.cs
- ListenerTraceUtility.cs
- DataServiceKeyAttribute.cs
- SelectorAutomationPeer.cs
- FunctionImportMapping.cs
- Int32Rect.cs
- IOException.cs
- SoapServerMessage.cs
- ResourceDisplayNameAttribute.cs
- PropertyStore.cs
- SqlRecordBuffer.cs
- TimeSpanConverter.cs
- InvalidCastException.cs
- XMLSchema.cs
- DataSetMappper.cs
- XsltFunctions.cs
- Propagator.ExtentPlaceholderCreator.cs
- securitycriticaldata.cs
- ObjectResult.cs
- IconConverter.cs