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
- Boolean.cs
- RIPEMD160Managed.cs
- RefType.cs
- ErrorHandlingAcceptor.cs
- RequestResizeEvent.cs
- HwndPanningFeedback.cs
- DataGridPageChangedEventArgs.cs
- CollectionBase.cs
- OAVariantLib.cs
- indexingfiltermarshaler.cs
- HttpWebRequestElement.cs
- WebResourceUtil.cs
- HeaderLabel.cs
- StringExpressionSet.cs
- WebPartTransformerCollection.cs
- FactoryId.cs
- CodeParameterDeclarationExpressionCollection.cs
- SchemaImporterExtensionElement.cs
- ProcessModuleCollection.cs
- NativeMethods.cs
- SubpageParaClient.cs
- SoapClientMessage.cs
- VisualBrush.cs
- AutomationPropertyInfo.cs
- DbConnectionClosed.cs
- IItemContainerGenerator.cs
- StringSorter.cs
- QueryCacheManager.cs
- NetworkInformationException.cs
- SiteMapNode.cs
- TrustManagerPromptUI.cs
- RepeatButtonAutomationPeer.cs
- ToolStripSplitStackLayout.cs
- JournalEntry.cs
- ComponentResourceManager.cs
- DescendentsWalker.cs
- SerializationEventsCache.cs
- NavigationWindow.cs
- WebRequestModuleElementCollection.cs
- CfgSemanticTag.cs
- CodeBlockBuilder.cs
- HttpRuntimeSection.cs
- TextMetrics.cs
- WebBrowserHelper.cs
- CalendarDateChangedEventArgs.cs
- MultiDataTrigger.cs
- SerializationEventsCache.cs
- CommonEndpointBehaviorElement.cs
- WaitHandle.cs
- UniqueEventHelper.cs
- DataKeyCollection.cs
- DataSourceCacheDurationConverter.cs
- AnimationClockResource.cs
- CodeCatchClause.cs
- ScriptingRoleServiceSection.cs
- TextClipboardData.cs
- SerializationInfo.cs
- ScrollPattern.cs
- ApplicationActivator.cs
- DbConvert.cs
- HandlerMappingMemo.cs
- SoapFormatter.cs
- documentsequencetextpointer.cs
- GenerateScriptTypeAttribute.cs
- AssertFilter.cs
- ProxyWebPartManager.cs
- ExpressionBinding.cs
- TemplateBaseAction.cs
- PageMediaType.cs
- GAC.cs
- TextEncodedRawTextWriter.cs
- BitmapEffectInputData.cs
- TextCharacters.cs
- InputLanguageManager.cs
- StreamingContext.cs
- TableStyle.cs
- TraceInternal.cs
- Triplet.cs
- ToolZone.cs
- ThreadExceptionEvent.cs
- ParentQuery.cs
- DataTableReaderListener.cs
- FtpCachePolicyElement.cs
- HttpPostedFile.cs
- MouseButtonEventArgs.cs
- HMACSHA384.cs
- VirtualPathProvider.cs
- SequentialOutput.cs
- MatrixTransform3D.cs
- Tablet.cs
- UpDownEvent.cs
- SizeValueSerializer.cs
- Int64AnimationBase.cs
- UInt64Converter.cs
- webbrowsersite.cs
- CAGDesigner.cs
- Form.cs
- SqlWriter.cs
- PrintDialogException.cs
- StringToken.cs