Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- MultiView.cs
- RegionInfo.cs
- DelegatingMessage.cs
- NullableFloatAverageAggregationOperator.cs
- DesignerObjectListAdapter.cs
- KeyProperty.cs
- RuleRef.cs
- DirectoryObjectSecurity.cs
- FunctionQuery.cs
- FixedSOMContainer.cs
- Attribute.cs
- MsmqAppDomainProtocolHandler.cs
- SQLChars.cs
- XPathEmptyIterator.cs
- Expression.cs
- ApplicationServiceHelper.cs
- XamlTypeMapper.cs
- StatusBarDrawItemEvent.cs
- ToolStripItemImageRenderEventArgs.cs
- Transactions.cs
- DurableServiceAttribute.cs
- SimpleWebHandlerParser.cs
- WebCategoryAttribute.cs
- DeclarativeCatalogPart.cs
- Compiler.cs
- DataDocumentXPathNavigator.cs
- RedirectionProxy.cs
- StackSpiller.cs
- RequestCacheValidator.cs
- FusionWrap.cs
- InputProviderSite.cs
- SystemIPGlobalProperties.cs
- EntityDataSourceStatementEditorForm.cs
- DbTransaction.cs
- Rect.cs
- Soap.cs
- OrderedDictionary.cs
- InputReport.cs
- SqlCommandBuilder.cs
- Maps.cs
- ExceptionValidationRule.cs
- ValidationErrorCollection.cs
- BuildProvider.cs
- BitmapPalettes.cs
- XmlWellformedWriter.cs
- UnknownBitmapDecoder.cs
- SQLResource.cs
- AssociationEndMember.cs
- ToolStripOverflowButton.cs
- MatrixTransform3D.cs
- SequentialActivityDesigner.cs
- IdnElement.cs
- Dispatcher.cs
- CellTreeNode.cs
- GradientStopCollection.cs
- Int32Storage.cs
- BinaryUtilClasses.cs
- ReferencedAssembly.cs
- VarInfo.cs
- ZipIOExtraField.cs
- Facet.cs
- ToolBarTray.cs
- MultiTargetingUtil.cs
- DiscreteKeyFrames.cs
- LowerCaseStringConverter.cs
- VectorConverter.cs
- Parser.cs
- WeakReferenceEnumerator.cs
- ToolStripCollectionEditor.cs
- HttpPostedFile.cs
- AudioBase.cs
- ToolStripComboBox.cs
- XamlPathDataSerializer.cs
- BindingFormattingDialog.cs
- WindowsTitleBar.cs
- OperationContractGenerationContext.cs
- UsernameTokenFactoryCredential.cs
- FontFamily.cs
- EncodingConverter.cs
- ExtentCqlBlock.cs
- WebSysDefaultValueAttribute.cs
- TargetParameterCountException.cs
- SchemaConstraints.cs
- RegistrySecurity.cs
- FontUnitConverter.cs
- ToolStripPanelSelectionBehavior.cs
- PublisherMembershipCondition.cs
- TdsParserSafeHandles.cs
- ColorTransform.cs
- FrameSecurityDescriptor.cs
- KeyManager.cs
- UTF8Encoding.cs
- RichTextBox.cs
- ConfigurationManagerHelperFactory.cs
- RtfToken.cs
- DataGridViewRowStateChangedEventArgs.cs
- XamlStackWriter.cs
- ConsoleCancelEventArgs.cs
- WsatRegistrationHeader.cs
- EventBuilder.cs