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
- Line.cs
- ResourceCategoryAttribute.cs
- ProcessInputEventArgs.cs
- ColorMap.cs
- DataListItemCollection.cs
- DodSequenceMerge.cs
- InvalidTimeZoneException.cs
- HttpResponse.cs
- FindProgressChangedEventArgs.cs
- DesignTable.cs
- XmlNode.cs
- HtmlTable.cs
- MessageContractExporter.cs
- SqlConnection.cs
- SimplePropertyEntry.cs
- HwndSource.cs
- X509RawDataKeyIdentifierClause.cs
- MailWebEventProvider.cs
- LogLogRecordHeader.cs
- Baml2006ReaderContext.cs
- ProxyManager.cs
- CharacterString.cs
- XmlSchemaSubstitutionGroup.cs
- HttpRawResponse.cs
- SmtpCommands.cs
- TableAutomationPeer.cs
- SetIterators.cs
- SizeAnimationClockResource.cs
- AttachedAnnotation.cs
- EncryptedXml.cs
- DeviceContexts.cs
- BindableAttribute.cs
- StretchValidation.cs
- HandleExceptionArgs.cs
- CustomAttribute.cs
- Point3DCollectionValueSerializer.cs
- MappableObjectManager.cs
- SharedDp.cs
- GridViewRowPresenterBase.cs
- CommonRemoteMemoryBlock.cs
- MultiPropertyDescriptorGridEntry.cs
- Base64Encoder.cs
- Control.cs
- DataControlPagerLinkButton.cs
- DataControlFieldHeaderCell.cs
- WorkflowMarkupSerializer.cs
- SqlLiftIndependentRowExpressions.cs
- MarkupCompiler.cs
- CountdownEvent.cs
- BindingList.cs
- Camera.cs
- XmlSchemaAttributeGroup.cs
- ToolStripArrowRenderEventArgs.cs
- MenuItemBindingCollection.cs
- StyleXamlParser.cs
- TableHeaderCell.cs
- RoutedEvent.cs
- IncrementalReadDecoders.cs
- MetadataItem_Static.cs
- BindableAttribute.cs
- XmlSiteMapProvider.cs
- Overlapped.cs
- ResourceCategoryAttribute.cs
- PeerNameRecordCollection.cs
- DropDownList.cs
- DataSetViewSchema.cs
- ClientSession.cs
- XPathChildIterator.cs
- CollectionTraceRecord.cs
- BevelBitmapEffect.cs
- ConcatQueryOperator.cs
- ScrollViewerAutomationPeer.cs
- FormsAuthenticationUser.cs
- HttpListenerPrefixCollection.cs
- XMLSyntaxException.cs
- TypeDescriptionProvider.cs
- WorkerRequest.cs
- CodeDirectoryCompiler.cs
- OracleMonthSpan.cs
- ElementHost.cs
- ScriptManager.cs
- HtmlInputRadioButton.cs
- DeviceSpecificDialogCachedState.cs
- _KerberosClient.cs
- TextEffect.cs
- BaseValidator.cs
- RC2.cs
- UInt16Converter.cs
- InvokeFunc.cs
- DataConnectionHelper.cs
- UnionCodeGroup.cs
- RotateTransform3D.cs
- CallbackException.cs
- Size3D.cs
- VisualTarget.cs
- ContextMenuService.cs
- AncestorChangedEventArgs.cs
- PropVariant.cs
- XDeferredAxisSource.cs
- tooltip.cs