Code:
/ DotNET / DotNET / 8.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
- RewritingPass.cs
- COM2Enum.cs
- OperationInvokerTrace.cs
- HostProtectionPermission.cs
- TraceHelpers.cs
- PkcsMisc.cs
- QilValidationVisitor.cs
- CompositeFontParser.cs
- BamlMapTable.cs
- DbXmlEnabledProviderManifest.cs
- PageCopyCount.cs
- PriorityItem.cs
- UnmanagedMemoryStream.cs
- ProjectionCamera.cs
- DaylightTime.cs
- ProxySimple.cs
- RoleManagerSection.cs
- DataGridTablesFactory.cs
- Attributes.cs
- DataGridViewCellEventArgs.cs
- NativeCppClassAttribute.cs
- SudsWriter.cs
- ValidationSummary.cs
- Rijndael.cs
- SafeViewOfFileHandle.cs
- XmlSchemaCollection.cs
- DataGridViewHitTestInfo.cs
- WindowsProgressbar.cs
- Function.cs
- XamlReaderHelper.cs
- PhysicalOps.cs
- ExtenderProvidedPropertyAttribute.cs
- XmlWhitespace.cs
- XmlCharCheckingWriter.cs
- TemplateBaseAction.cs
- EditorZoneBase.cs
- HttpRuntimeSection.cs
- DocumentPageView.cs
- RowToFieldTransformer.cs
- DelayDesigner.cs
- ManagementEventArgs.cs
- EntityDesignerUtils.cs
- EndEvent.cs
- WebPartManager.cs
- RecognizerInfo.cs
- CFStream.cs
- VirtualPathUtility.cs
- IntegerValidator.cs
- PolyBezierSegmentFigureLogic.cs
- EntityViewContainer.cs
- UpdateCommandGenerator.cs
- Int64AnimationUsingKeyFrames.cs
- ScrollBar.cs
- Converter.cs
- SafeNativeMethodsOther.cs
- VariantWrapper.cs
- AnnotationDocumentPaginator.cs
- UrlAuthFailedErrorFormatter.cs
- objectresult_tresulttype.cs
- ScriptingJsonSerializationSection.cs
- ToolStripPanelRenderEventArgs.cs
- JulianCalendar.cs
- UnsafeNativeMethods.cs
- PlanCompiler.cs
- NavigationCommands.cs
- ContentDisposition.cs
- TransformerInfo.cs
- TaiwanLunisolarCalendar.cs
- BuilderPropertyEntry.cs
- ActivityCollectionMarkupSerializer.cs
- ResourceFallbackManager.cs
- InvalidPipelineStoreException.cs
- CachedRequestParams.cs
- DispatcherSynchronizationContext.cs
- ResourceDisplayNameAttribute.cs
- NetworkStream.cs
- GridViewCancelEditEventArgs.cs
- CodeTypeMember.cs
- FixedSOMTableRow.cs
- Int64Converter.cs
- XmlSchemaFacet.cs
- EventToken.cs
- ReceiveErrorHandling.cs
- PhysicalAddress.cs
- DoubleMinMaxAggregationOperator.cs
- SessionParameter.cs
- PropertyEmitter.cs
- WebBrowsableAttribute.cs
- ContractAdapter.cs
- CubicEase.cs
- DataGridViewLayoutData.cs
- MessageQueuePermissionAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- HttpHandlerActionCollection.cs
- SessionPageStateSection.cs
- Baml6Assembly.cs
- Attributes.cs
- Bits.cs
- sqlstateclientmanager.cs
- UnaryOperationBinder.cs