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
- UrlPath.cs
- TextFormatterHost.cs
- Stack.cs
- RuleDefinitions.cs
- _ServiceNameStore.cs
- TemplateBindingExpression.cs
- HttpListenerContext.cs
- IRCollection.cs
- CodeThrowExceptionStatement.cs
- UnmanagedHandle.cs
- WebReference.cs
- WS2007HttpBindingElement.cs
- ThemeInfoAttribute.cs
- Color.cs
- PrimarySelectionAdorner.cs
- WebBaseEventKeyComparer.cs
- DataGridViewDataErrorEventArgs.cs
- SoundPlayerAction.cs
- SoapIgnoreAttribute.cs
- SafeArrayRankMismatchException.cs
- AnnotationResource.cs
- SystemException.cs
- DataTrigger.cs
- SecurityState.cs
- ArrayElementGridEntry.cs
- InternalPermissions.cs
- XmlBufferReader.cs
- BamlLocalizableResource.cs
- FieldReference.cs
- HotSpotCollection.cs
- IssuanceLicense.cs
- SystemIcons.cs
- HttpsChannelFactory.cs
- ToolstripProfessionalRenderer.cs
- ButtonPopupAdapter.cs
- CategoryNameCollection.cs
- TimeSpan.cs
- TraceHandler.cs
- TextSpan.cs
- DataServiceKeyAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- State.cs
- MetadataArtifactLoaderCompositeFile.cs
- ExtendedPropertyDescriptor.cs
- LinqToSqlWrapper.cs
- ProviderUtil.cs
- DataServiceQueryException.cs
- TreeNodeSelectionProcessor.cs
- HelpInfo.cs
- TransactionTraceIdentifier.cs
- DSASignatureFormatter.cs
- ItemContainerProviderWrapper.cs
- DesignerActionList.cs
- BasicKeyConstraint.cs
- invalidudtexception.cs
- RuntimeArgumentHandle.cs
- HyperLink.cs
- TimeSpanOrInfiniteConverter.cs
- ControlCachePolicy.cs
- StyleCollectionEditor.cs
- DocumentPageViewAutomationPeer.cs
- DataGridViewCellMouseEventArgs.cs
- Dynamic.cs
- DataGridViewSelectedCellCollection.cs
- NamedObjectList.cs
- Expressions.cs
- StoreConnection.cs
- AppendHelper.cs
- HostVisual.cs
- FacetDescriptionElement.cs
- RepeaterCommandEventArgs.cs
- CustomLineCap.cs
- SQLGuid.cs
- log.cs
- BufferAllocator.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- CachingHintValidation.cs
- FileAuthorizationModule.cs
- ControlBuilderAttribute.cs
- RTLAwareMessageBox.cs
- HandlerFactoryCache.cs
- InputScopeNameConverter.cs
- DESCryptoServiceProvider.cs
- Timeline.cs
- EntityReference.cs
- AnonymousIdentificationModule.cs
- WebPart.cs
- BrowserCapabilitiesFactory.cs
- WsdlServiceChannelBuilder.cs
- FeatureAttribute.cs
- MarshalByValueComponent.cs
- DrawItemEvent.cs
- BoundingRectTracker.cs
- DynamicILGenerator.cs
- ControlBindingsCollection.cs
- FormViewUpdatedEventArgs.cs
- IntSecurity.cs
- ExpandoClass.cs
- CryptoConfig.cs
- Int32AnimationBase.cs