Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ListenerResponseStream.cs
- Module.cs
- CubicEase.cs
- InlineObject.cs
- DoubleAnimationUsingPath.cs
- Color.cs
- ObjectDataSourceView.cs
- DefaultValidator.cs
- SimpleType.cs
- VarRefManager.cs
- RoutedEventArgs.cs
- SolidColorBrush.cs
- PartialCachingAttribute.cs
- SinglePageViewer.cs
- SQLBoolean.cs
- RectIndependentAnimationStorage.cs
- ConfigXmlCDataSection.cs
- MethodBody.cs
- FolderBrowserDialog.cs
- AuthorizationRuleCollection.cs
- InheritanceRules.cs
- TiffBitmapEncoder.cs
- CircleHotSpot.cs
- ActivityExecutor.cs
- _DomainName.cs
- BuildResult.cs
- SafeProcessHandle.cs
- TreeNodeCollection.cs
- COM2PropertyPageUITypeConverter.cs
- ScaleTransform.cs
- VarRemapper.cs
- DispatcherHookEventArgs.cs
- ScrollBar.cs
- XmlKeywords.cs
- WindowsScroll.cs
- IndicShape.cs
- SecurityKeyIdentifierClause.cs
- SchemaDeclBase.cs
- PolicyLevel.cs
- UnsafeNativeMethods.cs
- Activator.cs
- TreeNodeBinding.cs
- CompositionTarget.cs
- BitmapEffectvisualstate.cs
- InternalBufferOverflowException.cs
- ApplicationActivator.cs
- XmlReaderSettings.cs
- SystemWebExtensionsSectionGroup.cs
- SqlDelegatedTransaction.cs
- Permission.cs
- LayoutEngine.cs
- CompatibleIComparer.cs
- BitmapEffectDrawingContextState.cs
- IOException.cs
- PeerCustomResolverSettings.cs
- DataGridTableStyleMappingNameEditor.cs
- ManualResetEvent.cs
- DataFormats.cs
- ZipIOModeEnforcingStream.cs
- CustomErrorCollection.cs
- Header.cs
- IdleTimeoutMonitor.cs
- SubclassTypeValidator.cs
- ToolStripContentPanelDesigner.cs
- mansign.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- UserControlDocumentDesigner.cs
- PerfCounters.cs
- Point4D.cs
- TextStore.cs
- XmlSignificantWhitespace.cs
- ToolStripOverflow.cs
- SiteMapNodeItem.cs
- SmtpTransport.cs
- XmlTextAttribute.cs
- MediaContextNotificationWindow.cs
- ReadOnlyDataSource.cs
- CodeAccessPermission.cs
- Parameter.cs
- SolidColorBrush.cs
- BinHexEncoder.cs
- EmptyElement.cs
- DiscoveryService.cs
- ActivationWorker.cs
- remotingproxy.cs
- DbException.cs
- ConfigErrorGlyph.cs
- PluralizationService.cs
- ReadOnlyCollectionBase.cs
- GuidConverter.cs
- DesignerTransactionCloseEvent.cs
- MetadataItemEmitter.cs
- GridViewSortEventArgs.cs
- QueryExecutionOption.cs
- UpdateProgress.cs
- ResourceIDHelper.cs
- ProcessThreadCollection.cs
- AssertFilter.cs
- BlurBitmapEffect.cs
- Keyboard.cs