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
- XmlLinkedNode.cs
- PathGradientBrush.cs
- BaseComponentEditor.cs
- XmlSchemaValidationException.cs
- TraceContextEventArgs.cs
- MainMenu.cs
- _ScatterGatherBuffers.cs
- MimeFormatExtensions.cs
- EntitySqlException.cs
- ImageListStreamer.cs
- RemoteWebConfigurationHost.cs
- GlyphingCache.cs
- FramingDecoders.cs
- RadioButton.cs
- DataGridViewCellPaintingEventArgs.cs
- HostExecutionContextManager.cs
- ComPlusThreadInitializer.cs
- EventWaitHandleSecurity.cs
- MinMaxParagraphWidth.cs
- TextViewBase.cs
- Drawing.cs
- TemplateContent.cs
- WsdlInspector.cs
- CollectionChangedEventManager.cs
- EdmScalarPropertyAttribute.cs
- MergeFilterQuery.cs
- ToolStripDesignerAvailabilityAttribute.cs
- UnicodeEncoding.cs
- Imaging.cs
- CultureInfo.cs
- DrawingVisual.cs
- XmlElementElement.cs
- RelationshipSet.cs
- CngProvider.cs
- ItemsControlAutomationPeer.cs
- DecimalAverageAggregationOperator.cs
- DesignerActionTextItem.cs
- HMACSHA256.cs
- WebConfigurationManager.cs
- TrackingMemoryStream.cs
- WindowsStatusBar.cs
- TraceSwitch.cs
- SetMemberBinder.cs
- GlobalizationSection.cs
- ScrollChangedEventArgs.cs
- SafeBitVector32.cs
- BaseParagraph.cs
- PauseStoryboard.cs
- DataStreams.cs
- TextWriter.cs
- CodeArgumentReferenceExpression.cs
- StrongBox.cs
- SqlClientPermission.cs
- WebPageTraceListener.cs
- HelpKeywordAttribute.cs
- SizeKeyFrameCollection.cs
- SafeNativeMethodsCLR.cs
- TypeDelegator.cs
- ToolStripPanelCell.cs
- _TLSstream.cs
- RelatedCurrencyManager.cs
- XpsS0ValidatingLoader.cs
- SessionEndedEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- EventLog.cs
- NativeMethods.cs
- SmiSettersStream.cs
- SqlDataSourceSelectingEventArgs.cs
- HttpDateParse.cs
- RegexFCD.cs
- ResourceManagerWrapper.cs
- BaseCollection.cs
- ContentElement.cs
- CreateUserWizardStep.cs
- InvokeGenerator.cs
- ModelTypeConverter.cs
- RemotingConfiguration.cs
- _Events.cs
- BaseDataBoundControl.cs
- ToolStripScrollButton.cs
- StrokeNodeEnumerator.cs
- ProfileSection.cs
- Enlistment.cs
- DoubleCollectionValueSerializer.cs
- ArrayTypeMismatchException.cs
- Panel.cs
- ThreadExceptionDialog.cs
- IUnknownConstantAttribute.cs
- ViewBox.cs
- MsmqInputMessagePool.cs
- HiddenFieldPageStatePersister.cs
- ComponentManagerBroker.cs
- SchemaMapping.cs
- xsdvalidator.cs
- LogEntrySerializationException.cs
- PageThemeCodeDomTreeGenerator.cs
- PopupRoot.cs
- DataServiceHostFactory.cs
- SiblingIterators.cs
- ColumnMapTranslator.cs