Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1305376 / 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; 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
- diagnosticsswitches.cs
- DirectoryInfo.cs
- shaperfactoryquerycacheentry.cs
- ResourceExpressionBuilder.cs
- ContentWrapperAttribute.cs
- ClientConfigurationHost.cs
- webbrowsersite.cs
- TreeView.cs
- NegationPusher.cs
- HttpFileCollection.cs
- XmlSchemaChoice.cs
- DBConnection.cs
- XmlCollation.cs
- UserMapPath.cs
- WebPartUserCapability.cs
- SelectionItemProviderWrapper.cs
- MetadataProperty.cs
- XmlNodeChangedEventArgs.cs
- RtfToXamlReader.cs
- DocumentXmlWriter.cs
- CommandField.cs
- DependencyPropertyValueSerializer.cs
- CategoryEditor.cs
- SignatureDescription.cs
- DataBoundControl.cs
- ChannelDispatcherBase.cs
- MailAddressCollection.cs
- GenericEnumerator.cs
- OutputCacheSection.cs
- HtmlInputSubmit.cs
- SqlDependency.cs
- DbReferenceCollection.cs
- InteropBitmapSource.cs
- TraversalRequest.cs
- SystemFonts.cs
- SqlCommandSet.cs
- GeneratedCodeAttribute.cs
- BitmapEffectDrawing.cs
- BufferedGraphicsContext.cs
- ResolveDuplex11AsyncResult.cs
- ControlPropertyNameConverter.cs
- HtmlAnchor.cs
- InteropEnvironment.cs
- MenuItemCollection.cs
- ProfileEventArgs.cs
- SetIterators.cs
- _LocalDataStoreMgr.cs
- FixedDocumentPaginator.cs
- ClientSession.cs
- AutomationElementCollection.cs
- _AuthenticationState.cs
- GeneralTransform2DTo3DTo2D.cs
- FixedSOMPageConstructor.cs
- PenCursorManager.cs
- LinqDataSourceInsertEventArgs.cs
- ClientFormsIdentity.cs
- OperationDescriptionCollection.cs
- SafePipeHandle.cs
- ExpressionParser.cs
- WebPartConnectionsCancelEventArgs.cs
- SocketAddress.cs
- CommandDevice.cs
- UInt32Converter.cs
- MessagePropertyVariants.cs
- Compiler.cs
- SqlUtils.cs
- DrawingImage.cs
- OdbcConnectionStringbuilder.cs
- InternalBufferManager.cs
- BaseHashHelper.cs
- XmlCompatibilityReader.cs
- QueryResponse.cs
- MenuItem.cs
- FormViewUpdatedEventArgs.cs
- ISO2022Encoding.cs
- Condition.cs
- InvokeHandlers.cs
- EventPropertyMap.cs
- SettingsProperty.cs
- Bits.cs
- ManipulationLogic.cs
- _CookieModule.cs
- PrimitiveXmlSerializers.cs
- ActivityBindForm.Designer.cs
- BitmapPalette.cs
- BindingCollection.cs
- DesignTimeValidationFeature.cs
- ImplicitInputBrush.cs
- HashHelper.cs
- HtmlHistory.cs
- Stacktrace.cs
- XmlRootAttribute.cs
- IsolatedStorageFile.cs
- FastPropertyAccessor.cs
- SchemaTypeEmitter.cs
- StaticFileHandler.cs
- ApplicationId.cs
- InvalidFilterCriteriaException.cs
- CacheOutputQuery.cs
- SqlCommand.cs