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
- UniqueID.cs
- Rijndael.cs
- OutputChannelBinder.cs
- FlowchartDesigner.xaml.cs
- DataGridViewColumnEventArgs.cs
- NamedPipeTransportManager.cs
- BaseCodePageEncoding.cs
- TimeStampChecker.cs
- RelationalExpressions.cs
- XmlSerializationGeneratedCode.cs
- CubicEase.cs
- ObjectReaderCompiler.cs
- PauseStoryboard.cs
- DurableInstanceProvider.cs
- ToolBarTray.cs
- SqlDataSourceAdvancedOptionsForm.cs
- TransformationRules.cs
- IsolatedStoragePermission.cs
- Win32SafeHandles.cs
- RadioButtonPopupAdapter.cs
- ObjectItemCachedAssemblyLoader.cs
- WebPartZoneCollection.cs
- FormConverter.cs
- ResourceWriter.cs
- QuerySettings.cs
- HtmlElementErrorEventArgs.cs
- HtmlInputCheckBox.cs
- VisualBasicImportReference.cs
- BrowserCapabilitiesFactoryBase.cs
- WindowsFormsHelpers.cs
- ping.cs
- ConfigUtil.cs
- DrawListViewSubItemEventArgs.cs
- RegexGroupCollection.cs
- FocusWithinProperty.cs
- PartialArray.cs
- XmlHelper.cs
- ObjectDataSourceSelectingEventArgs.cs
- SqlConnectionManager.cs
- CallbackException.cs
- SessionPageStatePersister.cs
- TypeConverterAttribute.cs
- ImageCollectionEditor.cs
- CqlGenerator.cs
- TemplateKey.cs
- ApplicationBuildProvider.cs
- DataBoundControlHelper.cs
- Ops.cs
- WorkflowDesigner.cs
- PeerNameRegistration.cs
- Point3DKeyFrameCollection.cs
- TextTreeTextBlock.cs
- TypeSemantics.cs
- DPTypeDescriptorContext.cs
- SizeConverter.cs
- OracleFactory.cs
- CharStorage.cs
- HtmlTableCellCollection.cs
- XmlArrayAttribute.cs
- Point3DCollection.cs
- InternalsVisibleToAttribute.cs
- MultiBinding.cs
- UpdateCompiler.cs
- updateconfighost.cs
- EnumBuilder.cs
- FileChangesMonitor.cs
- WebSysDisplayNameAttribute.cs
- ConfigurationElementCollection.cs
- TextFormattingConverter.cs
- FilterException.cs
- BulletDecorator.cs
- ProviderMetadata.cs
- HtmlTernaryTree.cs
- RightsManagementInformation.cs
- ResourceDescriptionAttribute.cs
- Marshal.cs
- KnownBoxes.cs
- ActivityExecutionContextCollection.cs
- XmlObjectSerializerReadContext.cs
- PocoPropertyAccessorStrategy.cs
- TextAdaptor.cs
- TouchDevice.cs
- OutputCacheProfile.cs
- ChannelServices.cs
- RelatedCurrencyManager.cs
- SqlAliaser.cs
- SqlBuilder.cs
- FlowLayoutPanel.cs
- VScrollProperties.cs
- SmiRequestExecutor.cs
- RecipientInfo.cs
- DataGridTableCollection.cs
- MenuItem.cs
- RightNameExpirationInfoPair.cs
- ColorContext.cs
- ConvertersCollection.cs
- BindableAttribute.cs
- TakeOrSkipWhileQueryOperator.cs
- IIS7ConfigurationLoader.cs
- HMAC.cs