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
- CodeNamespace.cs
- TextElementCollectionHelper.cs
- TimeSpanMinutesConverter.cs
- GeometryHitTestParameters.cs
- InstanceDataCollectionCollection.cs
- ImageButton.cs
- SqlTrackingWorkflowInstance.cs
- InvalidBodyAccessException.cs
- XmlWrappingWriter.cs
- XmlMemberMapping.cs
- OdbcConnectionOpen.cs
- XsdSchemaFileEditor.cs
- DrawingContextWalker.cs
- TextViewBase.cs
- ToolStripContainer.cs
- Point3DAnimationBase.cs
- DataGridViewToolTip.cs
- FontDialog.cs
- WebBrowserNavigatedEventHandler.cs
- TreeViewImageKeyConverter.cs
- EndpointAddress.cs
- ResolvedKeyFrameEntry.cs
- DecoratedNameAttribute.cs
- FormViewDeletedEventArgs.cs
- DataServices.cs
- BroadcastEventHelper.cs
- LogAppendAsyncResult.cs
- DataKey.cs
- ConfigurationLocationCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Win32SafeHandles.cs
- CompilerParameters.cs
- SqlDuplicator.cs
- TypeGeneratedEventArgs.cs
- TreeView.cs
- FaultContractAttribute.cs
- UInt32Storage.cs
- DataGridViewSortCompareEventArgs.cs
- EnlistmentState.cs
- BaseAutoFormat.cs
- ReadContentAsBinaryHelper.cs
- TextRangeEdit.cs
- Expr.cs
- Transform.cs
- ButtonBaseAutomationPeer.cs
- GridErrorDlg.cs
- sqlnorm.cs
- AssociatedControlConverter.cs
- SqlClientPermission.cs
- ValueQuery.cs
- XamlClipboardData.cs
- RuleSetDialog.Designer.cs
- NumericUpDownAccelerationCollection.cs
- DesignBindingEditor.cs
- XmlTypeAttribute.cs
- CodeDesigner.cs
- IDQuery.cs
- HtmlInputImage.cs
- WindowsServiceElement.cs
- FrugalMap.cs
- DeclarationUpdate.cs
- GridSplitter.cs
- CodeTypeMember.cs
- SafeHandles.cs
- InternalBase.cs
- NativeMsmqMessage.cs
- HwndSourceKeyboardInputSite.cs
- InvalidComObjectException.cs
- GridView.cs
- NotifyParentPropertyAttribute.cs
- FontFamilyConverter.cs
- TableColumn.cs
- MeasurementDCInfo.cs
- FixedSOMPageConstructor.cs
- ArglessEventHandlerProxy.cs
- CombinedGeometry.cs
- UnmanagedHandle.cs
- DefaultPrintController.cs
- RawAppCommandInputReport.cs
- XmlBindingWorker.cs
- _NativeSSPI.cs
- LocationReferenceValue.cs
- Effect.cs
- ScriptComponentDescriptor.cs
- HttpCapabilitiesEvaluator.cs
- TypeListConverter.cs
- HatchBrush.cs
- DataServiceContext.cs
- TraceSwitch.cs
- MD5CryptoServiceProvider.cs
- ReferencedAssembly.cs
- PackagePartCollection.cs
- DesignerActionUIService.cs
- DocumentSequence.cs
- SqlPersistenceProviderFactory.cs
- Header.cs
- MatrixCamera.cs
- BindingMAnagerBase.cs
- XpsFilter.cs
- Int64AnimationBase.cs