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
- CodeDefaultValueExpression.cs
- XmlNullResolver.cs
- RelatedView.cs
- UIPropertyMetadata.cs
- SqlTypeSystemProvider.cs
- ServiceElement.cs
- GridViewUpdateEventArgs.cs
- SemanticResultKey.cs
- SendMailErrorEventArgs.cs
- MsmqInputSessionChannel.cs
- FormParameter.cs
- MonitoringDescriptionAttribute.cs
- SQLByteStorage.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SelectorItemAutomationPeer.cs
- RealProxy.cs
- DataControlPagerLinkButton.cs
- DataColumnSelectionConverter.cs
- TextMarkerSource.cs
- XmlQueryTypeFactory.cs
- Repeater.cs
- CacheHelper.cs
- ValidationSummary.cs
- RemotingServices.cs
- MulticastIPAddressInformationCollection.cs
- AppDomainManager.cs
- LiteralControl.cs
- ToolTip.cs
- SHA512Managed.cs
- OdbcCommand.cs
- CurrencyWrapper.cs
- SecurityTokenSerializer.cs
- LoginCancelEventArgs.cs
- ObjectStateManagerMetadata.cs
- Point4D.cs
- HwndAppCommandInputProvider.cs
- Comparer.cs
- ToolStripProgressBar.cs
- OleDbDataReader.cs
- IFlowDocumentViewer.cs
- EntityParameterCollection.cs
- EventDescriptor.cs
- ListViewDataItem.cs
- SoapIncludeAttribute.cs
- WSHttpBindingCollectionElement.cs
- UInt16.cs
- WindowsListViewGroupSubsetLink.cs
- LoadedOrUnloadedOperation.cs
- AQNBuilder.cs
- StringAttributeCollection.cs
- FormsAuthenticationModule.cs
- MetaType.cs
- MemberHolder.cs
- Byte.cs
- CodeAssignStatement.cs
- QueryStringParameter.cs
- LineSegment.cs
- UnderstoodHeaders.cs
- CheckBox.cs
- DesignerFrame.cs
- ProxyHwnd.cs
- ModuleBuilder.cs
- DataBinding.cs
- EventHandlers.cs
- XmlWriterTraceListener.cs
- RuntimeConfig.cs
- CompModSwitches.cs
- CodeGotoStatement.cs
- EntityException.cs
- TransportBindingElement.cs
- GenerateDerivedKeyRequest.cs
- DataObjectSettingDataEventArgs.cs
- ComplexBindingPropertiesAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SqlRemoveConstantOrderBy.cs
- SpecialNameAttribute.cs
- RankException.cs
- ResourcesGenerator.cs
- ValueConversionAttribute.cs
- DockingAttribute.cs
- EncodingFallbackAwareXmlTextWriter.cs
- IntranetCredentialPolicy.cs
- WebBrowserBase.cs
- SortFieldComparer.cs
- SpotLight.cs
- ExecutedRoutedEventArgs.cs
- CompositeCollection.cs
- MouseEventArgs.cs
- AssemblyNameProxy.cs
- UnsupportedPolicyOptionsException.cs
- _ListenerResponseStream.cs
- AnnotationService.cs
- SessionState.cs
- MobileControlsSection.cs
- WebZone.cs
- LabelDesigner.cs
- VerificationException.cs
- EntityReference.cs
- FixedDocumentPaginator.cs
- CollectionView.cs