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
- ObjectParameter.cs
- WebServiceFault.cs
- InputLanguageManager.cs
- TextElement.cs
- BrowserDefinition.cs
- sqlstateclientmanager.cs
- TransactionChannelFactory.cs
- NodeFunctions.cs
- XmlDomTextWriter.cs
- Char.cs
- DynamicPropertyReader.cs
- OrderedDictionaryStateHelper.cs
- RoleManagerEventArgs.cs
- AudioDeviceOut.cs
- HorizontalAlignConverter.cs
- StylusPointProperty.cs
- Directory.cs
- FileNotFoundException.cs
- URLMembershipCondition.cs
- ComboBoxRenderer.cs
- ProxyElement.cs
- EntityCodeGenerator.cs
- configsystem.cs
- ScrollPatternIdentifiers.cs
- RefExpr.cs
- SerialPort.cs
- XmlSchemaSequence.cs
- FrameworkElementAutomationPeer.cs
- ProxyHelper.cs
- KeyNotFoundException.cs
- CacheDependency.cs
- SQLDoubleStorage.cs
- SamlAuthorizationDecisionClaimResource.cs
- tooltip.cs
- AppDomainCompilerProxy.cs
- HMACRIPEMD160.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ContextMenuService.cs
- ComponentChangedEvent.cs
- PageThemeParser.cs
- IHttpResponseInternal.cs
- ProgressBarHighlightConverter.cs
- GridViewDeleteEventArgs.cs
- ServerType.cs
- Decimal.cs
- SemanticResolver.cs
- BinaryCommonClasses.cs
- EntityContainerEmitter.cs
- JournalEntry.cs
- RelAssertionDirectKeyIdentifierClause.cs
- CallbackValidator.cs
- WarningException.cs
- Size3D.cs
- UidManager.cs
- RoutedEventHandlerInfo.cs
- WebPartCatalogAddVerb.cs
- IriParsingElement.cs
- Baml2006Reader.cs
- ListControlBoundActionList.cs
- FilteredAttributeCollection.cs
- CompareInfo.cs
- VarInfo.cs
- EllipseGeometry.cs
- SmtpLoginAuthenticationModule.cs
- x509utils.cs
- WindowsListViewGroup.cs
- HttpApplication.cs
- Select.cs
- Image.cs
- ObjectAnimationBase.cs
- NavigationPropertyEmitter.cs
- RoutedEventConverter.cs
- OutputCacheProfile.cs
- RegexWriter.cs
- DefaultExpression.cs
- Storyboard.cs
- BinaryQueryOperator.cs
- SqlDataSourceEnumerator.cs
- DigitShape.cs
- ControlDesignerState.cs
- SEHException.cs
- ItemType.cs
- DataBindingCollection.cs
- UDPClient.cs
- XmlParserContext.cs
- GridViewColumnHeaderAutomationPeer.cs
- PointAnimationBase.cs
- DesignerLinkAdapter.cs
- objectquery_tresulttype.cs
- Registry.cs
- DtdParser.cs
- DebugView.cs
- SecurityCriticalDataForSet.cs
- DoubleCollectionValueSerializer.cs
- ToolStripDropDownClosedEventArgs.cs
- LabelAutomationPeer.cs
- TypefaceMetricsCache.cs
- Version.cs
- UmAlQuraCalendar.cs
- EDesignUtil.cs