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
- MatrixCamera.cs
- ToolboxComponentsCreatedEventArgs.cs
- DiscoveryEndpointElement.cs
- SystemMulticastIPAddressInformation.cs
- HtmlEmptyTagControlBuilder.cs
- ConfigXmlSignificantWhitespace.cs
- UnsafeNativeMethods.cs
- Point3DCollectionValueSerializer.cs
- XhtmlConformanceSection.cs
- GroupQuery.cs
- ComPersistableTypeElement.cs
- LinkButton.cs
- ThreadAttributes.cs
- TextElement.cs
- HttpListenerTimeoutManager.cs
- Error.cs
- StateMachineWorkflowInstance.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlSchemaRedefine.cs
- CannotUnloadAppDomainException.cs
- JoinGraph.cs
- ContentOperations.cs
- LocalizableAttribute.cs
- DataListItemEventArgs.cs
- Util.cs
- ObjectCacheSettings.cs
- DocumentApplicationJournalEntry.cs
- XmlDsigSep2000.cs
- HttpListenerException.cs
- WebPart.cs
- AppDomainResourcePerfCounters.cs
- TableLayoutPanelCellPosition.cs
- EmbeddedMailObject.cs
- ObjectDataSourceMethodEventArgs.cs
- IssuedSecurityTokenProvider.cs
- TextViewElement.cs
- XmlSchemaSimpleTypeList.cs
- SelectiveScrollingGrid.cs
- ExpressionDumper.cs
- DefaultValueConverter.cs
- SqlInternalConnectionSmi.cs
- CalendarDateRange.cs
- HitTestWithPointDrawingContextWalker.cs
- _SingleItemRequestCache.cs
- HWStack.cs
- ComboBox.cs
- TreeWalkHelper.cs
- WebPartRestoreVerb.cs
- AsymmetricKeyExchangeDeformatter.cs
- TemplateBamlTreeBuilder.cs
- CodeStatementCollection.cs
- SchemaImporterExtension.cs
- ToolboxItemWrapper.cs
- CrossSiteScriptingValidation.cs
- MatrixTransform3D.cs
- RightsManagementPermission.cs
- FixedDocumentSequencePaginator.cs
- AsyncResult.cs
- SmtpAuthenticationManager.cs
- ExeContext.cs
- BitmapEffect.cs
- Token.cs
- FilteredXmlReader.cs
- XmlTypeAttribute.cs
- ResourcePool.cs
- ScriptingJsonSerializationSection.cs
- CompositeClientFormatter.cs
- ToolStripMenuItem.cs
- SerializationException.cs
- CategoriesDocumentFormatter.cs
- SystemColors.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CodeEntryPointMethod.cs
- XmlSchemaSubstitutionGroup.cs
- Material.cs
- IgnorePropertiesAttribute.cs
- FlowDocumentView.cs
- SystemIPGlobalProperties.cs
- EntityViewGenerationAttribute.cs
- WorkflowItemPresenter.cs
- SharedPersonalizationStateInfo.cs
- ProfilePropertySettings.cs
- oledbconnectionstring.cs
- ShowExpandedMultiValueConverter.cs
- codemethodreferenceexpression.cs
- StylusSystemGestureEventArgs.cs
- TextElement.cs
- CryptoHandle.cs
- DataGridState.cs
- SurrogateSelector.cs
- SHA256Managed.cs
- documentsequencetextview.cs
- Timer.cs
- TextEditorParagraphs.cs
- DataGridAutomationPeer.cs
- ConfigurationStrings.cs
- TimelineGroup.cs
- FastPropertyAccessor.cs
- LiteralControl.cs
- MailAddress.cs