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
- SynchronizedRandom.cs
- StandardBindingReliableSessionElement.cs
- SqlDataSourceWizardForm.cs
- QueryFunctions.cs
- URL.cs
- XsltQilFactory.cs
- ZoomPercentageConverter.cs
- ResXBuildProvider.cs
- NameValuePermission.cs
- DependencyObjectType.cs
- XmlSchemaSimpleTypeUnion.cs
- RelationshipType.cs
- VersionedStreamOwner.cs
- _AutoWebProxyScriptWrapper.cs
- IncrementalReadDecoders.cs
- SmtpReplyReader.cs
- PropertyTabAttribute.cs
- WmfPlaceableFileHeader.cs
- BrowserInteropHelper.cs
- GridViewEditEventArgs.cs
- ThreadNeutralSemaphore.cs
- PageThemeParser.cs
- DelayedRegex.cs
- DataFormats.cs
- EditorPart.cs
- NamedElement.cs
- AlphabeticalEnumConverter.cs
- Point3DAnimationUsingKeyFrames.cs
- FileInfo.cs
- MobileControlsSectionHelper.cs
- UnionCodeGroup.cs
- CodeMemberField.cs
- MouseActionConverter.cs
- Validator.cs
- CryptographicAttribute.cs
- DeviceContexts.cs
- TextDecorationCollection.cs
- AbsoluteQuery.cs
- QilSortKey.cs
- GregorianCalendar.cs
- NonParentingControl.cs
- DataBoundControlHelper.cs
- NullableLongMinMaxAggregationOperator.cs
- SoapSchemaImporter.cs
- XmlSchemaNotation.cs
- StrongNameSignatureInformation.cs
- C14NUtil.cs
- MessageQueueAccessControlEntry.cs
- ViewStateModeByIdAttribute.cs
- MailWriter.cs
- SettingsBase.cs
- DataBinder.cs
- InspectionWorker.cs
- IChannel.cs
- TimeoutException.cs
- ReadOnlyDictionary.cs
- NativeActivity.cs
- _DynamicWinsockMethods.cs
- BindStream.cs
- OdbcConnectionPoolProviderInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- PropertyIDSet.cs
- DefaultAssemblyResolver.cs
- TranslateTransform3D.cs
- XmlFormatWriterGenerator.cs
- WS2007FederationHttpBinding.cs
- PauseStoryboard.cs
- BaseCodePageEncoding.cs
- RadioButtonAutomationPeer.cs
- ClientRoleProvider.cs
- __TransparentProxy.cs
- PropertyPushdownHelper.cs
- VerificationAttribute.cs
- XmlText.cs
- CustomCategoryAttribute.cs
- SByteConverter.cs
- AstTree.cs
- BindingBase.cs
- CodeArrayIndexerExpression.cs
- CalendarTable.cs
- DodSequenceMerge.cs
- XpsImageSerializationService.cs
- NamespaceExpr.cs
- OpacityConverter.cs
- AnimationLayer.cs
- LinkDesigner.cs
- ClientBuildManager.cs
- HyperLinkDataBindingHandler.cs
- Propagator.Evaluator.cs
- SendSecurityHeader.cs
- ProbeMatchesApril2005.cs
- ComponentTray.cs
- MergablePropertyAttribute.cs
- TextPenaltyModule.cs
- WindowsAuthenticationEventArgs.cs
- ContainerTracking.cs
- BufferModeSettings.cs
- InputLanguageCollection.cs
- StringComparer.cs
- CodeDirectionExpression.cs