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
- UniformGrid.cs
- ParameterSubsegment.cs
- EraserBehavior.cs
- DependencySource.cs
- KeyedCollection.cs
- ReverseInheritProperty.cs
- HtmlHistory.cs
- Menu.cs
- ConfigurationStrings.cs
- BooleanExpr.cs
- XmlTextReaderImplHelpers.cs
- ViewStateChangedEventArgs.cs
- ProvidersHelper.cs
- RoutedCommand.cs
- MachineSettingsSection.cs
- MailHeaderInfo.cs
- TypedTableGenerator.cs
- DBCommandBuilder.cs
- EdmConstants.cs
- DbConvert.cs
- OutputScope.cs
- GetFileNameResult.cs
- HwndSubclass.cs
- ChannelServices.cs
- HttpRawResponse.cs
- AdPostCacheSubstitution.cs
- RuleSettings.cs
- PlaceHolder.cs
- ConditionalAttribute.cs
- AncestorChangedEventArgs.cs
- GlobalizationSection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- NewItemsContextMenuStrip.cs
- DataGridViewCellLinkedList.cs
- UserInitiatedNavigationPermission.cs
- GridViewColumn.cs
- VarRemapper.cs
- CustomError.cs
- UserNameSecurityTokenProvider.cs
- SmiEventSink.cs
- DragEventArgs.cs
- PageParserFilter.cs
- _SingleItemRequestCache.cs
- HttpProfileBase.cs
- TemplateManager.cs
- WebPartConnectionsConfigureVerb.cs
- DataGridState.cs
- TextReader.cs
- Switch.cs
- SignedXml.cs
- WebDisplayNameAttribute.cs
- EnumerableValidator.cs
- MultiBindingExpression.cs
- DataGridViewRowHeaderCell.cs
- TraceContext.cs
- EmbeddedObject.cs
- SettingsAttributeDictionary.cs
- ObjectStateManagerMetadata.cs
- RemotingConfiguration.cs
- TreeViewItem.cs
- TextEditorDragDrop.cs
- DataGridRelationshipRow.cs
- VScrollProperties.cs
- CustomGrammar.cs
- DataGridCommandEventArgs.cs
- CompatibleIComparer.cs
- ConvertEvent.cs
- PropertyPathWorker.cs
- ProcessInputEventArgs.cs
- WebDisplayNameAttribute.cs
- UnaryExpression.cs
- Figure.cs
- Variable.cs
- SkipStoryboardToFill.cs
- CssStyleCollection.cs
- UpDownEvent.cs
- CatalogZoneDesigner.cs
- XmlDictionary.cs
- IOException.cs
- Select.cs
- ImportedNamespaceContextItem.cs
- AutomationPropertyChangedEventArgs.cs
- FirstQueryOperator.cs
- ReplyChannelAcceptor.cs
- DrawingAttributes.cs
- EventHandlersStore.cs
- TableLayout.cs
- Part.cs
- EdmRelationshipRoleAttribute.cs
- UrlPath.cs
- OleDbPropertySetGuid.cs
- RefExpr.cs
- WebServiceFaultDesigner.cs
- ConfigXmlAttribute.cs
- RegistrationServices.cs
- Trace.cs
- FaultFormatter.cs
- DefaultProxySection.cs
- LinkButton.cs
- GetWinFXPath.cs