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
- DataGridToolTip.cs
- StreamInfo.cs
- Function.cs
- Buffer.cs
- WebPartRestoreVerb.cs
- HierarchicalDataSourceControl.cs
- DurableInstanceProvider.cs
- SettingsSection.cs
- XmlSerializerVersionAttribute.cs
- _TLSstream.cs
- ObjectViewQueryResultData.cs
- InternalBase.cs
- ListSourceHelper.cs
- StateDesigner.LayoutSelectionGlyph.cs
- CodeAttributeDeclarationCollection.cs
- MembershipPasswordException.cs
- InternalCache.cs
- RtfControlWordInfo.cs
- TabPageDesigner.cs
- ScrollBar.cs
- RuleSettingsCollection.cs
- HtmlCommandAdapter.cs
- X509Certificate2.cs
- ToolStripArrowRenderEventArgs.cs
- AttributeQuery.cs
- columnmapfactory.cs
- CompensatableTransactionScopeActivity.cs
- ColumnTypeConverter.cs
- OleDbPermission.cs
- CustomPopupPlacement.cs
- SpotLight.cs
- ListCollectionView.cs
- FormViewInsertedEventArgs.cs
- WindowsRebar.cs
- _AuthenticationState.cs
- SystemDiagnosticsSection.cs
- Quaternion.cs
- ObjectMemberMapping.cs
- TransactionFlowAttribute.cs
- FocusChangedEventArgs.cs
- WebServiceTypeData.cs
- XmlSchemaElement.cs
- ActivityTrace.cs
- XmlAttributeAttribute.cs
- Relationship.cs
- ToolStripPanelSelectionBehavior.cs
- CredentialManagerDialog.cs
- AttachedAnnotation.cs
- Context.cs
- Vector.cs
- MemberInfoSerializationHolder.cs
- Screen.cs
- Win32.cs
- Menu.cs
- DesignerContextDescriptor.cs
- FrugalMap.cs
- safesecurityhelperavalon.cs
- ITextView.cs
- Completion.cs
- DocumentPage.cs
- EntityDataSourceChangedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- Positioning.cs
- FlowDocumentView.cs
- Preprocessor.cs
- TransformGroup.cs
- TrackBar.cs
- StylusPointProperties.cs
- DmlSqlGenerator.cs
- QilReplaceVisitor.cs
- TypedElement.cs
- TimeSpanFormat.cs
- SparseMemoryStream.cs
- DependencyPropertyAttribute.cs
- ConfigErrorGlyph.cs
- ProjectionPruner.cs
- LeaseManager.cs
- TableHeaderCell.cs
- DataGridViewColumnConverter.cs
- ModuleBuilder.cs
- COM2Enum.cs
- SqlDataSourceView.cs
- QualifiedCellIdBoolean.cs
- OleAutBinder.cs
- DataGridViewBindingCompleteEventArgs.cs
- ReadOnlyCollection.cs
- EmptyQuery.cs
- SchemaElementLookUpTableEnumerator.cs
- SkipQueryOptionExpression.cs
- CachedResourceDictionaryExtension.cs
- HttpCapabilitiesSectionHandler.cs
- ChannelManager.cs
- EmbossBitmapEffect.cs
- RMEnrollmentPage2.cs
- ContainerControl.cs
- SQLResource.cs
- ChannelTokenTypeConverter.cs
- Journal.cs
- OperationValidationEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs