Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Container.cs
- Transform3D.cs
- DetailsViewModeEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- DesignerCommandSet.cs
- IPPacketInformation.cs
- RayMeshGeometry3DHitTestResult.cs
- ContextStaticAttribute.cs
- ColorInterpolationModeValidation.cs
- SafeNativeHandle.cs
- Quaternion.cs
- UICuesEvent.cs
- UiaCoreApi.cs
- ExpandoClass.cs
- ObjectMemberMapping.cs
- DebugView.cs
- CharEntityEncoderFallback.cs
- DbBuffer.cs
- BuildProvider.cs
- Rect3DValueSerializer.cs
- ChangeBlockUndoRecord.cs
- infer.cs
- RegexBoyerMoore.cs
- BounceEase.cs
- ToolStripDropDown.cs
- XmlKeywords.cs
- TypeToArgumentTypeConverter.cs
- NullableFloatMinMaxAggregationOperator.cs
- MulticastDelegate.cs
- ConstructorBuilder.cs
- XPathNodeHelper.cs
- SendMailErrorEventArgs.cs
- DataGridViewRowCollection.cs
- LicenseManager.cs
- NavigatorInput.cs
- WebPartDisplayModeCollection.cs
- MarkupExtensionReturnTypeAttribute.cs
- ObjectQueryState.cs
- ToolStripItemImageRenderEventArgs.cs
- Wizard.cs
- LoginUtil.cs
- CLSCompliantAttribute.cs
- ConfigXmlDocument.cs
- NamespaceDecl.cs
- SEHException.cs
- OdbcDataReader.cs
- GenericParameterDataContract.cs
- SocketPermission.cs
- SmtpDigestAuthenticationModule.cs
- DrawingImage.cs
- TypedDataSetSchemaImporterExtension.cs
- Socket.cs
- BufferBuilder.cs
- NegotiateStream.cs
- ToggleButtonAutomationPeer.cs
- SocketException.cs
- SymbolType.cs
- mactripleDES.cs
- Form.cs
- RuntimeEnvironment.cs
- BitmapScalingModeValidation.cs
- CompilerLocalReference.cs
- StateChangeEvent.cs
- SimpleHandlerFactory.cs
- SmiMetaDataProperty.cs
- RegexCode.cs
- StringPropertyBuilder.cs
- TypeInfo.cs
- DurableEnlistmentState.cs
- BaseComponentEditor.cs
- CellTreeNode.cs
- WebPartDescription.cs
- FilterUserControlBase.cs
- StreamProxy.cs
- ExtendLockCommand.cs
- DictionaryContent.cs
- AppDomainInfo.cs
- WmlPanelAdapter.cs
- BitmapPalettes.cs
- HwndHostAutomationPeer.cs
- MembershipUser.cs
- SrgsRulesCollection.cs
- PasswordTextContainer.cs
- TextProperties.cs
- ConstructorArgumentAttribute.cs
- XmlNullResolver.cs
- GifBitmapDecoder.cs
- SelectionHighlightInfo.cs
- PropertyFilter.cs
- ImageListUtils.cs
- ToolStripSystemRenderer.cs
- ToolStripPanelRenderEventArgs.cs
- XhtmlConformanceSection.cs
- XmlAttributeCollection.cs
- WebAdminConfigurationHelper.cs
- ToolStripDropDownButton.cs
- SoapProtocolImporter.cs
- SamlNameIdentifierClaimResource.cs
- querybuilder.cs
- InvokeProviderWrapper.cs