Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1305376 / 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;
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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcFactory.cs
- DriveNotFoundException.cs
- StreamAsIStream.cs
- AnnouncementInnerClientCD1.cs
- _NtlmClient.cs
- Socket.cs
- CopyNamespacesAction.cs
- ResourceKey.cs
- MenuStrip.cs
- EmptyQuery.cs
- UnmanagedMarshal.cs
- Point4D.cs
- MonthChangedEventArgs.cs
- XXXInfos.cs
- CodeAttributeArgument.cs
- Itemizer.cs
- CodeAccessSecurityEngine.cs
- WebControlAdapter.cs
- __Error.cs
- ContentElement.cs
- DbBuffer.cs
- TimelineClockCollection.cs
- FixedHighlight.cs
- MultiBindingExpression.cs
- DayRenderEvent.cs
- InvokeHandlers.cs
- EncodingDataItem.cs
- Baml2006Reader.cs
- CallbackValidatorAttribute.cs
- RemotingSurrogateSelector.cs
- CodeAccessPermission.cs
- Timer.cs
- InternalCache.cs
- ChtmlTextWriter.cs
- PropertyGridEditorPart.cs
- XmlSchemaType.cs
- CodeGotoStatement.cs
- RawAppCommandInputReport.cs
- MulticastIPAddressInformationCollection.cs
- UnicodeEncoding.cs
- TextRenderingModeValidation.cs
- ProtocolsConfigurationHandler.cs
- FormatterServices.cs
- SoapHttpTransportImporter.cs
- DashStyles.cs
- EntityParameterCollection.cs
- ValidationEventArgs.cs
- Line.cs
- ExpressionList.cs
- EntityContainer.cs
- BrushMappingModeValidation.cs
- ToolboxItemAttribute.cs
- DefaultWorkflowSchedulerService.cs
- HtmlDocument.cs
- UrlAuthFailedErrorFormatter.cs
- HttpPostClientProtocol.cs
- GridViewUpdateEventArgs.cs
- ArcSegment.cs
- PrePrepareMethodAttribute.cs
- DesignerActionItemCollection.cs
- TextStore.cs
- MLangCodePageEncoding.cs
- VScrollBar.cs
- InternalConfigEventArgs.cs
- BindingValueChangedEventArgs.cs
- EntityWithChangeTrackerStrategy.cs
- ItemsControl.cs
- DiffuseMaterial.cs
- DSASignatureDeformatter.cs
- NeutralResourcesLanguageAttribute.cs
- XpsImageSerializationService.cs
- VisualState.cs
- SecurityException.cs
- XslNumber.cs
- VirtualPathData.cs
- MemoryStream.cs
- UidManager.cs
- AdornerHitTestResult.cs
- XmlSerializerFactory.cs
- CompilerWrapper.cs
- IResourceProvider.cs
- ListViewDataItem.cs
- FieldTemplateUserControl.cs
- Point.cs
- TdsParserHelperClasses.cs
- DecimalAnimationUsingKeyFrames.cs
- AccessorTable.cs
- LineInfo.cs
- FigureHelper.cs
- PropertyInformation.cs
- CryptoStream.cs
- NamedPipeAppDomainProtocolHandler.cs
- SQLBoolean.cs
- ITreeGenerator.cs
- RequiredAttributeAttribute.cs
- ConsoleTraceListener.cs
- IBuiltInEvidence.cs
- ResourcePart.cs
- TextWriterEngine.cs
- TimeSpanValidator.cs