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
- SqlInternalConnection.cs
- BinHexDecoder.cs
- DataGridViewButtonCell.cs
- BindingParameterCollection.cs
- CrossSiteScriptingValidation.cs
- DataAdapter.cs
- HttpStreamMessageEncoderFactory.cs
- Border.cs
- TransportSecurityProtocolFactory.cs
- HttpHandler.cs
- ToolStripMenuItemCodeDomSerializer.cs
- WebBrowser.cs
- DataSourceCacheDurationConverter.cs
- SafeFileHandle.cs
- OdbcConnection.cs
- TypePresenter.xaml.cs
- WorkflowApplicationIdleEventArgs.cs
- BevelBitmapEffect.cs
- SpellerError.cs
- AssociativeAggregationOperator.cs
- WebGetAttribute.cs
- UInt32Converter.cs
- TypeUtil.cs
- WindowsIPAddress.cs
- AddingNewEventArgs.cs
- UnmanagedHandle.cs
- MatrixAnimationUsingPath.cs
- WebPartDisplayModeCancelEventArgs.cs
- ToolTipService.cs
- OracleCommandSet.cs
- DbParameterHelper.cs
- storepermissionattribute.cs
- DataListItemCollection.cs
- ActivationServices.cs
- ObjectPropertyMapping.cs
- JsonFormatReaderGenerator.cs
- base64Transforms.cs
- XhtmlBasicSelectionListAdapter.cs
- ACE.cs
- FixedSOMTableRow.cs
- ObjectParameterCollection.cs
- EntityDataSourceViewSchema.cs
- RuntimeUtils.cs
- DatatypeImplementation.cs
- GAC.cs
- DropSourceBehavior.cs
- DataGridViewColumn.cs
- RelatedImageListAttribute.cs
- _Semaphore.cs
- DataColumnCollection.cs
- CodeAccessPermission.cs
- IntMinMaxAggregationOperator.cs
- TablePattern.cs
- SimpleType.cs
- WebConfigurationFileMap.cs
- ObjectStateEntry.cs
- odbcmetadatafactory.cs
- CheckBox.cs
- PEFileEvidenceFactory.cs
- XslNumber.cs
- ComponentSerializationService.cs
- SpecularMaterial.cs
- DataGridViewHitTestInfo.cs
- ClonableStack.cs
- DrawTreeNodeEventArgs.cs
- ProcessHostMapPath.cs
- PasswordBox.cs
- SerializationSectionGroup.cs
- Polyline.cs
- LookupNode.cs
- _TLSstream.cs
- ChangeBlockUndoRecord.cs
- PolyQuadraticBezierSegment.cs
- LoadGrammarCompletedEventArgs.cs
- DropDownButton.cs
- AccessControlList.cs
- ObjectMaterializedEventArgs.cs
- IdentityValidationException.cs
- SoapTypeAttribute.cs
- HwndTarget.cs
- CodeMethodInvokeExpression.cs
- Preprocessor.cs
- TypeSchema.cs
- X509Chain.cs
- TypedElement.cs
- HttpRequestCacheValidator.cs
- mediaeventargs.cs
- SqlClientPermission.cs
- ProcessModelSection.cs
- DataGridCellInfo.cs
- ExtensionDataReader.cs
- PrtCap_Builder.cs
- XmlObjectSerializer.cs
- LayoutTable.cs
- WebPartDisplayModeCollection.cs
- PageVisual.cs
- RijndaelManaged.cs
- CopyNamespacesAction.cs
- XmlLinkedNode.cs
- DataBoundControlActionList.cs