Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ResizingMessageFilter.cs
- ConfigurationStrings.cs
- GetPageCompletedEventArgs.cs
- iisPickupDirectory.cs
- HtmlContainerControl.cs
- FileDialog.cs
- XmlAnyElementAttribute.cs
- StateWorkerRequest.cs
- WrapperSecurityCommunicationObject.cs
- DataGridViewCellCancelEventArgs.cs
- InheritedPropertyChangedEventArgs.cs
- MethodAccessException.cs
- WizardDesigner.cs
- ParameterElement.cs
- AssociationType.cs
- RC2.cs
- PrivilegedConfigurationManager.cs
- ServiceProviders.cs
- BaseResourcesBuildProvider.cs
- AccessibilityApplicationManager.cs
- BufferModeSettings.cs
- altserialization.cs
- HtmlTable.cs
- RichTextBox.cs
- CompilerTypeWithParams.cs
- Point4D.cs
- ResourceWriter.cs
- ObsoleteAttribute.cs
- PanelStyle.cs
- PersonalizationProvider.cs
- DrawToolTipEventArgs.cs
- IISUnsafeMethods.cs
- RadioButton.cs
- XmlSchemaImporter.cs
- ForeignKeyFactory.cs
- ProfileGroupSettings.cs
- RTLAwareMessageBox.cs
- FlowDocument.cs
- BitmapEffectDrawingContextWalker.cs
- ActionMessageFilterTable.cs
- ImmutableObjectAttribute.cs
- XmlEventCache.cs
- WebHeaderCollection.cs
- ProjectionCamera.cs
- DesignerSelectionListAdapter.cs
- CodeComment.cs
- SimpleWorkerRequest.cs
- Compiler.cs
- ConnectionPointGlyph.cs
- Msec.cs
- CuspData.cs
- XmlQueryType.cs
- MembershipSection.cs
- XmlSerializationGeneratedCode.cs
- XhtmlTextWriter.cs
- RowUpdatingEventArgs.cs
- BackgroundFormatInfo.cs
- WebPartZoneCollection.cs
- Documentation.cs
- GridViewSortEventArgs.cs
- XmlDocumentFragment.cs
- WebPartTransformerAttribute.cs
- ErrorStyle.cs
- SafeEventHandle.cs
- VisualTreeHelper.cs
- NavigationService.cs
- LogLogRecord.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlSchemaSequence.cs
- IconHelper.cs
- SQLDouble.cs
- DesignerActionPropertyItem.cs
- StringAttributeCollection.cs
- FormViewCommandEventArgs.cs
- TransactionsSectionGroup.cs
- InputLangChangeRequestEvent.cs
- AppDomain.cs
- BlurBitmapEffect.cs
- ValidatorCompatibilityHelper.cs
- BindingGroup.cs
- BaseCAMarshaler.cs
- ExpressionBindingCollection.cs
- WebSysDisplayNameAttribute.cs
- SQLInt64.cs
- CommonXSendMessage.cs
- webclient.cs
- MatrixTransform.cs
- PathNode.cs
- MultipartContentParser.cs
- DeclarativeCatalogPart.cs
- ToolStripSettings.cs
- ObjectNavigationPropertyMapping.cs
- EdmEntityTypeAttribute.cs
- FormViewRow.cs
- GestureRecognitionResult.cs
- SafeNativeMemoryHandle.cs
- QilScopedVisitor.cs
- BasicHttpSecurityElement.cs
- RtfControls.cs
- _LoggingObject.cs