Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OpacityConverter.cs
- HtmlInputButton.cs
- AutoResizedEvent.cs
- DateTimeValueSerializerContext.cs
- PromptEventArgs.cs
- ScriptResourceHandler.cs
- InstanceDescriptor.cs
- GeneralTransform2DTo3DTo2D.cs
- CollectionViewProxy.cs
- AmbientProperties.cs
- CodeGenHelper.cs
- FileUpload.cs
- DefaultTypeArgumentAttribute.cs
- DrawingState.cs
- XmlSchemas.cs
- Math.cs
- XPathNodePointer.cs
- EnvironmentPermission.cs
- XmlHierarchicalEnumerable.cs
- MediaTimeline.cs
- Application.cs
- Serializer.cs
- BuildManager.cs
- AnimationClock.cs
- ApplicationActivator.cs
- KnownAssembliesSet.cs
- ToolStripItemDesigner.cs
- login.cs
- FreezableCollection.cs
- ValidationUtility.cs
- ErrorWebPart.cs
- DataServiceHost.cs
- ValidationResult.cs
- AttributeAction.cs
- KeyValuePairs.cs
- CachedFontFamily.cs
- DoubleAnimationClockResource.cs
- NavigationPropertySingletonExpression.cs
- XmlNavigatorFilter.cs
- ActivityWithResultWrapper.cs
- CommandBinding.cs
- GregorianCalendar.cs
- ChangePassword.cs
- VectorValueSerializer.cs
- DateTimeFormatInfo.cs
- ProviderManager.cs
- VariableElement.cs
- srgsitem.cs
- RegexCaptureCollection.cs
- HyperlinkAutomationPeer.cs
- ProfilePropertySettingsCollection.cs
- AppliesToBehaviorDecisionTable.cs
- DataGridViewCellFormattingEventArgs.cs
- XamlInt32CollectionSerializer.cs
- UnsafeNativeMethods.cs
- GridPattern.cs
- ParamArrayAttribute.cs
- PointHitTestResult.cs
- DbFunctionCommandTree.cs
- Int32Storage.cs
- XmlReader.cs
- __Filters.cs
- DocumentGridPage.cs
- DataGridCell.cs
- KnownAssembliesSet.cs
- WebBrowserSiteBase.cs
- ArrayListCollectionBase.cs
- IInstanceTable.cs
- DrawingBrush.cs
- CacheManager.cs
- TreeNodeBindingDepthConverter.cs
- XmlAttributeProperties.cs
- ProtectedConfigurationSection.cs
- AssociationSet.cs
- TreeNodeConverter.cs
- ObjectListSelectEventArgs.cs
- CodeCatchClauseCollection.cs
- WorkflowFormatterBehavior.cs
- DesignerRegion.cs
- TdsParserStateObject.cs
- LazyTextWriterCreator.cs
- ArrayListCollectionBase.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TableColumn.cs
- RefreshPropertiesAttribute.cs
- TraceContextRecord.cs
- ThreadAttributes.cs
- D3DImage.cs
- OdbcConnectionOpen.cs
- GradientBrush.cs
- HeaderUtility.cs
- PrintDialog.cs
- MsmqHostedTransportConfiguration.cs
- XmlSchemaSimpleContentRestriction.cs
- TouchPoint.cs
- ResourceType.cs
- ModifiableIteratorCollection.cs
- CodeSnippetCompileUnit.cs
- BamlRecordReader.cs
- PcmConverter.cs