Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XamlClipboardData.cs
- TraceSection.cs
- SchemaType.cs
- SamlEvidence.cs
- RightsManagementErrorHandler.cs
- DataGridViewSelectedCellCollection.cs
- RoleManagerEventArgs.cs
- EventRecordWrittenEventArgs.cs
- ToolStripControlHost.cs
- DataTableNameHandler.cs
- XmlUnspecifiedAttribute.cs
- HTMLTagNameToTypeMapper.cs
- WindowsScrollBarBits.cs
- EncoderReplacementFallback.cs
- WindowInteropHelper.cs
- Variant.cs
- NullableConverter.cs
- BypassElementCollection.cs
- jithelpers.cs
- CodeCommentStatementCollection.cs
- CollectionConverter.cs
- PersonalizationState.cs
- TabletCollection.cs
- OdbcError.cs
- RelationshipDetailsCollection.cs
- HtmlControlPersistable.cs
- UnsafePeerToPeerMethods.cs
- BinaryParser.cs
- Config.cs
- CapabilitiesUse.cs
- EntityCollection.cs
- EmptyEnumerator.cs
- Transform3DCollection.cs
- RefreshEventArgs.cs
- CompilerErrorCollection.cs
- GridViewActionList.cs
- Polygon.cs
- UrlMappingsSection.cs
- InputLanguageSource.cs
- ThrowHelper.cs
- ConfigurationProperty.cs
- SoapCodeExporter.cs
- RawStylusSystemGestureInputReport.cs
- WebPartManagerInternals.cs
- NavigationPropertyEmitter.cs
- CheckoutException.cs
- SQLBinaryStorage.cs
- RepeaterCommandEventArgs.cs
- GridViewCellAutomationPeer.cs
- GeneralTransform.cs
- FieldAccessException.cs
- Win32KeyboardDevice.cs
- SystemInfo.cs
- CodeNamespace.cs
- RTLAwareMessageBox.cs
- WebConfigurationFileMap.cs
- SQLDateTime.cs
- FilterEventArgs.cs
- HashMembershipCondition.cs
- WorkflowTraceTransfer.cs
- SecurityKeyIdentifier.cs
- AuthenticationServiceManager.cs
- TransportChannelFactory.cs
- CompositionTarget.cs
- StringAnimationUsingKeyFrames.cs
- SafeProcessHandle.cs
- KnownBoxes.cs
- Span.cs
- ControlValuePropertyAttribute.cs
- RegexRunner.cs
- HwndKeyboardInputProvider.cs
- IPAddressCollection.cs
- PKCS1MaskGenerationMethod.cs
- ConnectionPoolManager.cs
- RadioButtonAutomationPeer.cs
- HttpWebResponse.cs
- MouseButtonEventArgs.cs
- TextRenderer.cs
- XmlSchemaCollection.cs
- KeyValueSerializer.cs
- TypeExtensionConverter.cs
- BufferModesCollection.cs
- MediaSystem.cs
- SqlDelegatedTransaction.cs
- TaiwanLunisolarCalendar.cs
- DbMetaDataColumnNames.cs
- SerializationInfo.cs
- _HeaderInfoTable.cs
- XmlLanguageConverter.cs
- AuthenticateEventArgs.cs
- Resources.Designer.cs
- MarkupExtensionReturnTypeAttribute.cs
- RowToParametersTransformer.cs
- GeometryHitTestParameters.cs
- ColorBlend.cs
- XmlValidatingReaderImpl.cs
- PingOptions.cs
- SchemaTypeEmitter.cs
- VersionUtil.cs
- RIPEMD160.cs