Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SourceItem.cs
- ParameterModifier.cs
- MenuItemStyle.cs
- Compensate.cs
- FormsAuthenticationCredentials.cs
- ProtocolsSection.cs
- ApplicationDirectory.cs
- PathGeometry.cs
- XD.cs
- HttpHandlerAction.cs
- MenuEventArgs.cs
- SQLGuid.cs
- DataServiceException.cs
- ToolStripDesignerUtils.cs
- XslVisitor.cs
- NativeCppClassAttribute.cs
- ImportFileRequest.cs
- XMLSchema.cs
- TextSpanModifier.cs
- WebEventTraceProvider.cs
- CompiledQueryCacheKey.cs
- FormViewUpdateEventArgs.cs
- PasswordRecoveryAutoFormat.cs
- RequiredFieldValidator.cs
- AutoGeneratedField.cs
- ExpressionBuilderCollection.cs
- Material.cs
- ResourceProperty.cs
- ObjectConverter.cs
- ProviderConnectionPointCollection.cs
- TdsParserStateObject.cs
- TypeDelegator.cs
- DataPagerFieldItem.cs
- XmlSignificantWhitespace.cs
- RTLAwareMessageBox.cs
- HwndSourceKeyboardInputSite.cs
- NetworkInformationException.cs
- VisualStyleInformation.cs
- SystemWebExtensionsSectionGroup.cs
- StylusCaptureWithinProperty.cs
- SamlDelegatingWriter.cs
- InputLanguageCollection.cs
- SamlConditions.cs
- UseLicense.cs
- Missing.cs
- Rules.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ScrollChrome.cs
- EntityClientCacheKey.cs
- ToolStripItemClickedEventArgs.cs
- FactoryMaker.cs
- PropertyChangedEventArgs.cs
- URL.cs
- ConstraintEnumerator.cs
- WsdlEndpointConversionContext.cs
- GridViewItemAutomationPeer.cs
- ComponentDesigner.cs
- Transform3D.cs
- UrlMappingsModule.cs
- nulltextnavigator.cs
- PointLight.cs
- SafeNativeMethods.cs
- SplineQuaternionKeyFrame.cs
- Marshal.cs
- TrustSection.cs
- PrincipalPermission.cs
- SafeProcessHandle.cs
- UnknownBitmapEncoder.cs
- QilChoice.cs
- ProfilePropertyMetadata.cs
- ScriptingProfileServiceSection.cs
- WS2007FederationHttpBinding.cs
- WebPartUserCapability.cs
- Event.cs
- MachineKeySection.cs
- ClientScriptManagerWrapper.cs
- XmlWriterTraceListener.cs
- FirstQueryOperator.cs
- ThreadStartException.cs
- DrawingVisualDrawingContext.cs
- safelink.cs
- BaseTemplatedMobileComponentEditor.cs
- httpstaticobjectscollection.cs
- AesManaged.cs
- ControlValuePropertyAttribute.cs
- LedgerEntryCollection.cs
- RealizationContext.cs
- InternalResources.cs
- SQLStringStorage.cs
- ButtonAutomationPeer.cs
- PaperSource.cs
- RNGCryptoServiceProvider.cs
- EdmScalarPropertyAttribute.cs
- CodeDomConfigurationHandler.cs
- XNodeValidator.cs
- UnsafeNativeMethods.cs
- XmlWrappingReader.cs
- DoubleKeyFrameCollection.cs
- TableColumnCollection.cs
- XDeferredAxisSource.cs