Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
}
}
}
}
// 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
- CheckableControlBaseAdapter.cs
- HyperLinkStyle.cs
- FixedTextBuilder.cs
- BindingMemberInfo.cs
- AddValidationError.cs
- RegexFCD.cs
- SqlWebEventProvider.cs
- RoleServiceManager.cs
- RelationalExpressions.cs
- ListViewGroupCollectionEditor.cs
- SiteMapDataSourceView.cs
- MediaTimeline.cs
- cookiecollection.cs
- XmlCompatibilityReader.cs
- Model3DCollection.cs
- BinaryQueryOperator.cs
- NotCondition.cs
- DataKeyCollection.cs
- TraceUtils.cs
- ContextMenu.cs
- DetailsViewUpdatedEventArgs.cs
- _UncName.cs
- UrlParameterReader.cs
- PolyBezierSegmentFigureLogic.cs
- ValuePatternIdentifiers.cs
- WinFormsUtils.cs
- ToggleButton.cs
- ActivationArguments.cs
- AssociationSetMetadata.cs
- RegexCompiler.cs
- StyleTypedPropertyAttribute.cs
- UiaCoreApi.cs
- SchemaElementDecl.cs
- ResourceProperty.cs
- WmfPlaceableFileHeader.cs
- PropertyDescriptorCollection.cs
- DataGridViewRowsRemovedEventArgs.cs
- AssemblyBuilder.cs
- MimeTypeMapper.cs
- SafeViewOfFileHandle.cs
- NominalTypeEliminator.cs
- ShaperBuffers.cs
- DetailsViewInsertEventArgs.cs
- ReferenceEqualityComparer.cs
- OleDbConnectionFactory.cs
- URLMembershipCondition.cs
- Main.cs
- DetailsViewInsertEventArgs.cs
- indexingfiltermarshaler.cs
- DataGridViewCellCancelEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlStringTable.cs
- MatrixKeyFrameCollection.cs
- HtmlElementErrorEventArgs.cs
- Queue.cs
- _HeaderInfo.cs
- Config.cs
- SoapReflectionImporter.cs
- LocalBuilder.cs
- CounterSetInstanceCounterDataSet.cs
- TypeUnloadedException.cs
- ProgressPage.cs
- Tokenizer.cs
- StreamGeometry.cs
- EmptyControlCollection.cs
- ConfigXmlElement.cs
- Clipboard.cs
- HwndHost.cs
- safelinkcollection.cs
- WindowsPen.cs
- HttpResponse.cs
- PointValueSerializer.cs
- Queue.cs
- NonNullItemCollection.cs
- CallbackWrapper.cs
- PtsHelper.cs
- columnmapkeybuilder.cs
- MetaModel.cs
- MethodExpr.cs
- SplashScreenNativeMethods.cs
- SoapWriter.cs
- XamlDesignerSerializationManager.cs
- DeclarationUpdate.cs
- FormsIdentity.cs
- activationcontext.cs
- BmpBitmapEncoder.cs
- ArrayWithOffset.cs
- ColorAnimationBase.cs
- DrawItemEvent.cs
- DBDataPermissionAttribute.cs
- PropertyDescriptorCollection.cs
- EventSourceCreationData.cs
- SoapObjectInfo.cs
- ConfigXmlDocument.cs
- XmlChildEnumerator.cs
- SqlFunctions.cs
- XmlNamespaceMapping.cs
- WindowsPrincipal.cs
- _ScatterGatherBuffers.cs
- DeviceSpecificChoice.cs