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
- HtmlInputPassword.cs
- MaskedTextProvider.cs
- NonBatchDirectoryCompiler.cs
- ImmComposition.cs
- ImageClickEventArgs.cs
- ServiceBuildProvider.cs
- InputLangChangeEvent.cs
- Permission.cs
- MergeLocalizationDirectives.cs
- ValidatedMobileControlConverter.cs
- ControlBuilderAttribute.cs
- TextEditor.cs
- CodeDOMProvider.cs
- EntityDesignPluralizationHandler.cs
- DragCompletedEventArgs.cs
- EntityViewContainer.cs
- ReferenceSchema.cs
- BaseDataList.cs
- PasswordRecoveryAutoFormat.cs
- SqlXml.cs
- TextProperties.cs
- OfTypeExpression.cs
- SqlReferenceCollection.cs
- ImageAutomationPeer.cs
- DataGridViewCellCollection.cs
- EnvelopeVersion.cs
- Cursor.cs
- documentsequencetextpointer.cs
- RadioButtonList.cs
- CngAlgorithm.cs
- HttpRuntimeSection.cs
- XmlChildNodes.cs
- ScrollPattern.cs
- RuntimeConfigurationRecord.cs
- BridgeDataRecord.cs
- SafeArrayTypeMismatchException.cs
- OdbcInfoMessageEvent.cs
- XpsS0ValidatingLoader.cs
- SHA384Managed.cs
- x509utils.cs
- FlowLayout.cs
- NativeMethods.cs
- SpnEndpointIdentity.cs
- LocalFileSettingsProvider.cs
- WindowsIdentity.cs
- EventLogQuery.cs
- Constants.cs
- UnknownBitmapDecoder.cs
- OciLobLocator.cs
- HwndKeyboardInputProvider.cs
- QueryableFilterUserControl.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- TraceHandler.cs
- SocketPermission.cs
- ErrorWrapper.cs
- KnownTypeAttribute.cs
- DataBoundControlHelper.cs
- TextContainerChangedEventArgs.cs
- KnownTypes.cs
- _DigestClient.cs
- ThreadSafeList.cs
- TagPrefixAttribute.cs
- _ShellExpression.cs
- BasicCellRelation.cs
- StreamResourceInfo.cs
- BaseResourcesBuildProvider.cs
- DynamicPropertyHolder.cs
- TextEffectCollection.cs
- ScriptServiceAttribute.cs
- FormViewDeletedEventArgs.cs
- DataServiceExpressionVisitor.cs
- CreateParams.cs
- BinaryReader.cs
- KeyTimeConverter.cs
- Preprocessor.cs
- ExternalFile.cs
- _SslStream.cs
- RenderDataDrawingContext.cs
- XmlSchemaInferenceException.cs
- XmlSerializableReader.cs
- TextProperties.cs
- IDQuery.cs
- AlternateViewCollection.cs
- SSmlParser.cs
- EncodingInfo.cs
- _BasicClient.cs
- SqlUtils.cs
- RewritingValidator.cs
- WebServiceResponse.cs
- VoiceSynthesis.cs
- MetafileHeaderWmf.cs
- FlowDocumentPage.cs
- TextRenderer.cs
- GiveFeedbackEventArgs.cs
- DatePickerAutomationPeer.cs
- KeyboardDevice.cs
- Parameter.cs
- ManualResetEvent.cs
- XmlAutoDetectWriter.cs
- TimeSpanMinutesConverter.cs