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
- OverflowException.cs
- XmlElementAttributes.cs
- RightsManagementInformation.cs
- Pts.cs
- Base64Decoder.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PersistenceException.cs
- StyleHelper.cs
- PropertyDescriptorComparer.cs
- XPathEmptyIterator.cs
- ColumnWidthChangedEvent.cs
- EditingCommands.cs
- XmlWrappingWriter.cs
- Clipboard.cs
- ModelUIElement3D.cs
- Exceptions.cs
- XmlNamespaceMapping.cs
- DataGridViewCellStyle.cs
- WindowsIPAddress.cs
- ActivationProxy.cs
- HostProtectionPermission.cs
- ClientUtils.cs
- SQLCharsStorage.cs
- ErrorTableItemStyle.cs
- HttpTransportSecurity.cs
- InvokeMethodActivityDesigner.cs
- ExceptionHandlerDesigner.cs
- OleDbCommand.cs
- GeneratedCodeAttribute.cs
- WebPartConnectionsDisconnectVerb.cs
- XPathNodePointer.cs
- NavigationCommands.cs
- ConfigViewGenerator.cs
- SecurityPermission.cs
- PriorityItem.cs
- BulletedList.cs
- MorphHelper.cs
- MobileListItem.cs
- ValidatorCollection.cs
- QilNode.cs
- CultureSpecificStringDictionary.cs
- NotCondition.cs
- ObjectDataSourceEventArgs.cs
- AsymmetricCryptoHandle.cs
- RightNameExpirationInfoPair.cs
- RefExpr.cs
- ObjectDataSourceSelectingEventArgs.cs
- ProcessHostFactoryHelper.cs
- Int32Storage.cs
- VerbConverter.cs
- Attribute.cs
- HttpCacheVary.cs
- CodePropertyReferenceExpression.cs
- GridViewRowPresenter.cs
- rsa.cs
- Point3DAnimationBase.cs
- LayoutUtils.cs
- _FixedSizeReader.cs
- DataPagerField.cs
- TextDecorationLocationValidation.cs
- ToolStripDesignerUtils.cs
- DispatcherExceptionEventArgs.cs
- ScrollContentPresenter.cs
- GridViewCommandEventArgs.cs
- SqlBuffer.cs
- Cursor.cs
- WebEventTraceProvider.cs
- ViewService.cs
- DefaultTraceListener.cs
- InfoCardHelper.cs
- ConnectionsZone.cs
- SectionRecord.cs
- ContextQuery.cs
- ContextDataSource.cs
- AudioException.cs
- WebConfigurationManager.cs
- PersistNameAttribute.cs
- XmlJsonWriter.cs
- StrokeFIndices.cs
- KnownBoxes.cs
- JsonFormatReaderGenerator.cs
- SecureStringHasher.cs
- WebSysDescriptionAttribute.cs
- AttachmentService.cs
- PreviewPageInfo.cs
- ConnectionInterfaceCollection.cs
- SapiRecognizer.cs
- SqlFileStream.cs
- VerificationAttribute.cs
- DeviceContexts.cs
- Clipboard.cs
- ProfileEventArgs.cs
- EventDescriptorCollection.cs
- PlanCompilerUtil.cs
- KeyBinding.cs
- DataContract.cs
- UIElement3D.cs
- Fonts.cs
- HttpClientCertificate.cs
- HttpException.cs