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
- RunClient.cs
- RefType.cs
- XmlWrappingWriter.cs
- HtmlTableCellCollection.cs
- PrePostDescendentsWalker.cs
- SmiEventSink_Default.cs
- XmlDataSourceView.cs
- DataGridViewCellFormattingEventArgs.cs
- SiteMapSection.cs
- Sorting.cs
- TypefaceCollection.cs
- DataGridColumnHeader.cs
- RsaSecurityKey.cs
- EntityDataSourceChangingEventArgs.cs
- PerformanceCounterPermissionAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- Type.cs
- DetailsViewDeleteEventArgs.cs
- BufferedGraphicsContext.cs
- sapiproxy.cs
- StrokeNode.cs
- SourceElementsCollection.cs
- FileSecurity.cs
- SR.cs
- IgnoreSection.cs
- ReliabilityContractAttribute.cs
- UnknownBitmapDecoder.cs
- RectIndependentAnimationStorage.cs
- Asn1IntegerConverter.cs
- SingleKeyFrameCollection.cs
- SmtpNtlmAuthenticationModule.cs
- XmlHelper.cs
- X509UI.cs
- CodeNamespaceCollection.cs
- UnauthorizedWebPart.cs
- CodeSnippetCompileUnit.cs
- PlanCompilerUtil.cs
- MetadataLocation.cs
- OutputWindow.cs
- MethodBody.cs
- WriteableOnDemandPackagePart.cs
- DetailsViewAutoFormat.cs
- DisableDpiAwarenessAttribute.cs
- SafeFileMapViewHandle.cs
- ISCIIEncoding.cs
- ReversePositionQuery.cs
- validation.cs
- GenerateTemporaryAssemblyTask.cs
- LogicalExpressionTypeConverter.cs
- ValidationHelper.cs
- SchemaImporterExtensionElementCollection.cs
- PinProtectionHelper.cs
- XmlCharType.cs
- XNodeNavigator.cs
- PointAnimationBase.cs
- AccessDataSourceDesigner.cs
- FormattedText.cs
- SubpageParaClient.cs
- bindurihelper.cs
- HandleTable.cs
- WindowsAuthenticationModule.cs
- WCFServiceClientProxyGenerator.cs
- AddressUtility.cs
- TransformerTypeCollection.cs
- PersonalizationDictionary.cs
- DataGridCell.cs
- CounterSample.cs
- ServiceOperation.cs
- ProfileManager.cs
- Vector3DCollection.cs
- RecordBuilder.cs
- FixedFindEngine.cs
- ExternalCalls.cs
- FixedPageStructure.cs
- DataGridViewRowPostPaintEventArgs.cs
- IisTraceWebEventProvider.cs
- LocalFileSettingsProvider.cs
- ContentPathSegment.cs
- AttributeCollection.cs
- DuplicateDetector.cs
- SymbolEqualComparer.cs
- TableItemStyle.cs
- DropTarget.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- FeatureAttribute.cs
- TreeNodeStyleCollectionEditor.cs
- ActiveXMessageFormatter.cs
- NegatedCellConstant.cs
- HotSpot.cs
- sqlnorm.cs
- XhtmlBasicTextBoxAdapter.cs
- DataDocumentXPathNavigator.cs
- ObjectDataSourceView.cs
- connectionpool.cs
- TextEditorCharacters.cs
- XsltOutput.cs
- CommentEmitter.cs
- PartialToken.cs
- WsdlBuildProvider.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs