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
- SatelliteContractVersionAttribute.cs
- ListView.cs
- RSAPKCS1SignatureFormatter.cs
- ToolStripDropDownClosedEventArgs.cs
- Control.cs
- _TimerThread.cs
- ToolStripEditorManager.cs
- RequestQueue.cs
- RtfToXamlLexer.cs
- TreeViewItemAutomationPeer.cs
- OracleCommandBuilder.cs
- MsmqInputSessionChannelListener.cs
- GeneralTransform3DTo2DTo3D.cs
- LingerOption.cs
- PreProcessInputEventArgs.cs
- StartFileNameEditor.cs
- XmlSchemaInclude.cs
- MailMessageEventArgs.cs
- Table.cs
- AncestorChangedEventArgs.cs
- counter.cs
- BooleanAnimationBase.cs
- DataGridRowHeader.cs
- XPathScanner.cs
- ListBoxItemWrapperAutomationPeer.cs
- RefExpr.cs
- XslNumber.cs
- MetadataFile.cs
- CircleHotSpot.cs
- ByteKeyFrameCollection.cs
- RegexMatchCollection.cs
- DesignerImageAdapter.cs
- ExpressionBinding.cs
- HasCopySemanticsAttribute.cs
- OneOfScalarConst.cs
- ScriptControlDescriptor.cs
- EntityDataSourceContextCreatingEventArgs.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DockPanel.cs
- AndCondition.cs
- SafeCryptContextHandle.cs
- PropertyDescriptorCollection.cs
- documentsequencetextpointer.cs
- RayHitTestParameters.cs
- DataDesignUtil.cs
- ExecutionEngineException.cs
- ObjectKeyFrameCollection.cs
- EventSetter.cs
- ToolstripProfessionalRenderer.cs
- Int16Converter.cs
- BrowserDefinition.cs
- GeometryGroup.cs
- RequestDescription.cs
- ColorBuilder.cs
- Int64AnimationBase.cs
- DefaultValueAttribute.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DbReferenceCollection.cs
- Journaling.cs
- XmlObjectSerializerContext.cs
- XmlDomTextWriter.cs
- WorkflowViewElement.cs
- Panel.cs
- DataGridParentRows.cs
- VirtualizingPanel.cs
- ThrowHelper.cs
- Size3D.cs
- ShapingWorkspace.cs
- ContentDesigner.cs
- WindowsListViewItemStartMenu.cs
- TableLayoutColumnStyleCollection.cs
- ObjectTokenCategory.cs
- AnimationClockResource.cs
- FlowDocumentView.cs
- CryptoProvider.cs
- DependencyPropertyHelper.cs
- XPathParser.cs
- RequestTimeoutManager.cs
- WindowsToolbarItemAsMenuItem.cs
- documentsequencetextcontainer.cs
- mediapermission.cs
- Metafile.cs
- NameValueConfigurationElement.cs
- ObjectDataSourceDesigner.cs
- TimeStampChecker.cs
- SerializationInfo.cs
- HGlobalSafeHandle.cs
- DesignBinding.cs
- FileVersion.cs
- BitmapMetadataEnumerator.cs
- NativeMethods.cs
- BuildProvider.cs
- StringHandle.cs
- FieldMetadata.cs
- AppModelKnownContentFactory.cs
- EnumerableCollectionView.cs
- ProtocolsConfigurationEntry.cs
- ProviderCollection.cs
- UnsafeNativeMethodsTablet.cs
- DoubleUtil.cs