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
- CreateRefExpr.cs
- CodeRemoveEventStatement.cs
- TextProperties.cs
- SeparatorAutomationPeer.cs
- XmlDictionaryString.cs
- BamlResourceSerializer.cs
- BufferedWebEventProvider.cs
- BinaryFormatter.cs
- PrintControllerWithStatusDialog.cs
- ObjectDataSourceFilteringEventArgs.cs
- DbDataReader.cs
- CompilationPass2Task.cs
- SetterBase.cs
- MessageDecoder.cs
- StreamResourceInfo.cs
- DataObject.cs
- WrappedKeySecurityTokenParameters.cs
- TextServicesCompartment.cs
- _KerberosClient.cs
- ToolStripCodeDomSerializer.cs
- GacUtil.cs
- SqlPersonalizationProvider.cs
- InkCanvasFeedbackAdorner.cs
- SynchronousChannelMergeEnumerator.cs
- TraversalRequest.cs
- ImageConverter.cs
- TemplateComponentConnector.cs
- RevocationPoint.cs
- WorkflowTransactionOptions.cs
- Subtract.cs
- LicenseException.cs
- CertificateReferenceElement.cs
- Encoder.cs
- SRGSCompiler.cs
- ModuleBuilderData.cs
- BinaryMethodMessage.cs
- SkinBuilder.cs
- EdmError.cs
- EmbeddedMailObject.cs
- SafeProcessHandle.cs
- PlanCompilerUtil.cs
- UnhandledExceptionEventArgs.cs
- ComboBox.cs
- BinaryFormatter.cs
- SqlGenericUtil.cs
- Stroke.cs
- SplitContainer.cs
- TcpConnectionPoolSettingsElement.cs
- BitmapEncoder.cs
- XmlSerializationWriter.cs
- ContainerParaClient.cs
- Page.cs
- ResourceAttributes.cs
- MsmqVerifier.cs
- ContentDefinition.cs
- SineEase.cs
- OleDbRowUpdatedEvent.cs
- CaseInsensitiveComparer.cs
- StorageMappingItemLoader.cs
- KnownAssemblyEntry.cs
- SiteMapSection.cs
- PageThemeCodeDomTreeGenerator.cs
- PointValueSerializer.cs
- EntityContainerEmitter.cs
- DataRelationCollection.cs
- HttpServerChannel.cs
- DetailsViewPagerRow.cs
- DataGridItem.cs
- PageCopyCount.cs
- AdornedElementPlaceholder.cs
- ConsoleKeyInfo.cs
- AudioFormatConverter.cs
- Ticks.cs
- ErrorEventArgs.cs
- CallContext.cs
- CredentialCache.cs
- HttpConfigurationSystem.cs
- DataShape.cs
- DataGridComboBoxColumn.cs
- ObjectViewListener.cs
- RequestDescription.cs
- HitTestFilterBehavior.cs
- SemanticResultKey.cs
- ToolStripDropDownItemDesigner.cs
- ChannelDispatcherBase.cs
- Bits.cs
- MenuAdapter.cs
- FaultDesigner.cs
- DiscoveryMessageSequence.cs
- SecurityPermission.cs
- MatrixStack.cs
- ImageSourceValueSerializer.cs
- CodeMethodInvokeExpression.cs
- Attributes.cs
- RectIndependentAnimationStorage.cs
- MethodExpr.cs
- ActivationArguments.cs
- TemplateComponentConnector.cs
- DataColumnPropertyDescriptor.cs
- Dynamic.cs