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
- XmlLanguageConverter.cs
- CollectionViewGroupInternal.cs
- ProxyRpc.cs
- SqlUserDefinedAggregateAttribute.cs
- TextEffectResolver.cs
- ContractMapping.cs
- MembershipSection.cs
- Graph.cs
- AttachedAnnotation.cs
- GridViewDeleteEventArgs.cs
- FileSystemInfo.cs
- SessionEndingEventArgs.cs
- ListBase.cs
- DispatcherObject.cs
- XmlStringTable.cs
- GPPOINT.cs
- ObjectManager.cs
- SequentialOutput.cs
- UnauthorizedWebPart.cs
- BamlStream.cs
- Paragraph.cs
- ClaimTypeElement.cs
- SizeChangedInfo.cs
- MessagePartDescription.cs
- ToolStripEditorManager.cs
- SizeChangedInfo.cs
- DataGridViewColumnHeaderCell.cs
- TextTreeInsertUndoUnit.cs
- HandlerWithFactory.cs
- PEFileReader.cs
- BamlVersionHeader.cs
- ReachFixedPageSerializerAsync.cs
- AutoSizeToolBoxItem.cs
- LinqDataSourceDisposeEventArgs.cs
- MimeMultiPart.cs
- ControlBuilderAttribute.cs
- AddInEnvironment.cs
- DataFormats.cs
- VarRefManager.cs
- NavigationPropertyEmitter.cs
- GridSplitter.cs
- Selector.cs
- DbDataRecord.cs
- CommandField.cs
- FlowLayoutPanel.cs
- WindowsTab.cs
- LinqDataSourceUpdateEventArgs.cs
- TreeViewBindingsEditor.cs
- ObjectContextServiceProvider.cs
- XmlSerializationGeneratedCode.cs
- CookieHandler.cs
- EntityDesignPluralizationHandler.cs
- SQLDecimalStorage.cs
- CodeLinePragma.cs
- SoapAttributeOverrides.cs
- MailDefinition.cs
- DbProviderManifest.cs
- EnvelopedSignatureTransform.cs
- SecureUICommand.cs
- DefaultValidator.cs
- SqlProcedureAttribute.cs
- IntSecurity.cs
- NumberSubstitution.cs
- IERequestCache.cs
- SingleStorage.cs
- WindowsRebar.cs
- ClientConvert.cs
- SiteMembershipCondition.cs
- TrailingSpaceComparer.cs
- SecurityUtils.cs
- HttpProfileBase.cs
- SafeRightsManagementQueryHandle.cs
- XmlDictionaryReader.cs
- TemplateField.cs
- LinkConverter.cs
- ToolStripOverflow.cs
- HotCommands.cs
- ProvidePropertyAttribute.cs
- PerformanceCounterManager.cs
- CrossSiteScriptingValidation.cs
- OleDbTransaction.cs
- UiaCoreApi.cs
- TemplateBindingExtension.cs
- Serializer.cs
- FormViewAutoFormat.cs
- FileUtil.cs
- TypeConvertions.cs
- Dispatcher.cs
- BigIntegerStorage.cs
- DoubleAverageAggregationOperator.cs
- Token.cs
- ManualResetEvent.cs
- Vector3DConverter.cs
- WindowsListViewGroupHelper.cs
- Soap.cs
- UnknownWrapper.cs
- ContentControl.cs
- AxWrapperGen.cs
- ContextMarshalException.cs
- CustomCredentialPolicy.cs