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
- ExecutionContext.cs
- CaretElement.cs
- MobileUITypeEditor.cs
- ParserStreamGeometryContext.cs
- PasswordDeriveBytes.cs
- DrawingImage.cs
- SmtpNetworkElement.cs
- DataViewManagerListItemTypeDescriptor.cs
- SerializationFieldInfo.cs
- DrawListViewSubItemEventArgs.cs
- HandlerFactoryCache.cs
- HttpServerVarsCollection.cs
- DataGridRelationshipRow.cs
- ListViewItemSelectionChangedEvent.cs
- CharEntityEncoderFallback.cs
- SvcMapFileSerializer.cs
- MessageLoggingElement.cs
- WsatServiceCertificate.cs
- StylesEditorDialog.cs
- path.cs
- XmlElement.cs
- TcpHostedTransportConfiguration.cs
- DataMemberConverter.cs
- DefaultTraceListener.cs
- CustomErrorsSectionWrapper.cs
- XmlDataProvider.cs
- PropertyEmitter.cs
- Point3DCollection.cs
- TableNameAttribute.cs
- SecureStringHasher.cs
- HuffModule.cs
- SystemIPAddressInformation.cs
- WindowVisualStateTracker.cs
- ExceptionValidationRule.cs
- Calendar.cs
- MappingModelBuildProvider.cs
- UnionQueryOperator.cs
- Win32Native.cs
- ContentPlaceHolder.cs
- ConstructorArgumentAttribute.cs
- PageOutputQuality.cs
- DesignerCategoryAttribute.cs
- RemoteWebConfigurationHostStream.cs
- NativeMethods.cs
- CodeCatchClause.cs
- ToolStripArrowRenderEventArgs.cs
- XmlSchemaObject.cs
- HebrewNumber.cs
- TimerEventSubscription.cs
- AssemblyResourceLoader.cs
- HMACSHA512.cs
- Object.cs
- IndexOutOfRangeException.cs
- ComponentTray.cs
- WebPartHelpVerb.cs
- HwndKeyboardInputProvider.cs
- WebPartsSection.cs
- Security.cs
- HttpStaticObjectsCollectionBase.cs
- Table.cs
- WebPartZone.cs
- EncryptedType.cs
- TimeStampChecker.cs
- _ChunkParse.cs
- GridViewRow.cs
- HatchBrush.cs
- MessageDecoder.cs
- RichTextBox.cs
- InternalControlCollection.cs
- OleAutBinder.cs
- COM2ExtendedTypeConverter.cs
- ScrollPattern.cs
- NumericPagerField.cs
- SqlDelegatedTransaction.cs
- TextContainerHelper.cs
- AsyncOperationContext.cs
- ComponentResourceKey.cs
- Int32CollectionConverter.cs
- TemplateColumn.cs
- InnerItemCollectionView.cs
- StructuredType.cs
- xmlformatgeneratorstatics.cs
- AdornedElementPlaceholder.cs
- FilterableAttribute.cs
- PathSegment.cs
- ErrorFormatterPage.cs
- AppDomainShutdownMonitor.cs
- CheckBoxPopupAdapter.cs
- ScrollChangedEventArgs.cs
- ConstructorBuilder.cs
- ToolboxItem.cs
- Parallel.cs
- ApplicationActivator.cs
- SQLUtility.cs
- PreloadedPackages.cs
- StyleBamlRecordReader.cs
- ProcessHostConfigUtils.cs
- BinaryNode.cs
- DefaultSettingsSection.cs
- TableTextElementCollectionInternal.cs