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
- VirtualizingStackPanel.cs
- ToolStripItemRenderEventArgs.cs
- RoleService.cs
- KnownIds.cs
- ImageKeyConverter.cs
- RenderContext.cs
- RemotingConfigParser.cs
- SoundPlayer.cs
- PersonalizationStateInfoCollection.cs
- StylusEditingBehavior.cs
- XamlHostingSectionGroup.cs
- infer.cs
- TypeBuilderInstantiation.cs
- VoiceChangeEventArgs.cs
- OuterGlowBitmapEffect.cs
- PrintPreviewGraphics.cs
- HostedImpersonationContext.cs
- RadioButton.cs
- FreeIndexList.cs
- NavigationService.cs
- AccessViolationException.cs
- IDataContractSurrogate.cs
- PackUriHelper.cs
- WebPartCloseVerb.cs
- OleDbFactory.cs
- Privilege.cs
- PerfService.cs
- Attributes.cs
- DetailsViewPageEventArgs.cs
- DoWhile.cs
- ActivityExecutionContext.cs
- DataColumnCollection.cs
- WeakReferenceList.cs
- DataGridComboBoxColumn.cs
- DBSqlParserTable.cs
- ServerProtocol.cs
- ElementHostAutomationPeer.cs
- SafeNativeMethodsOther.cs
- TypographyProperties.cs
- AssertSection.cs
- SqlStatistics.cs
- SqlPersonalizationProvider.cs
- GeometryModel3D.cs
- EmptyControlCollection.cs
- X509ChainElement.cs
- TextContainerChangeEventArgs.cs
- DummyDataSource.cs
- PropertyReferenceSerializer.cs
- ClientConfigurationHost.cs
- ToolStripContentPanel.cs
- recordstatescratchpad.cs
- RepeaterItemEventArgs.cs
- DataRecord.cs
- MergeEnumerator.cs
- XPathParser.cs
- ErrorFormatter.cs
- WindowsRichEditRange.cs
- TypedTableBase.cs
- _DigestClient.cs
- DataTableReader.cs
- SQLDouble.cs
- OutputCacheProfileCollection.cs
- InvokeProviderWrapper.cs
- BaseDataBoundControlDesigner.cs
- DateTimeOffsetConverter.cs
- MemberMaps.cs
- CompileXomlTask.cs
- LayoutTable.cs
- PackageFilter.cs
- TrackingAnnotationCollection.cs
- MtomMessageEncodingBindingElement.cs
- SqlVersion.cs
- QilDataSource.cs
- ToolStripSystemRenderer.cs
- BadImageFormatException.cs
- StickyNoteAnnotations.cs
- FragmentNavigationEventArgs.cs
- ITextView.cs
- PathTooLongException.cs
- _TransmitFileOverlappedAsyncResult.cs
- sqlpipe.cs
- uribuilder.cs
- GeneralTransform3DGroup.cs
- NameValuePair.cs
- ConfigXmlElement.cs
- IUnknownConstantAttribute.cs
- updateconfighost.cs
- BinaryObjectInfo.cs
- DataGridLinkButton.cs
- WinEventTracker.cs
- RunClient.cs
- MenuCommands.cs
- LinqDataSource.cs
- MemberListBinding.cs
- DataGridLinkButton.cs
- OdbcErrorCollection.cs
- Exceptions.cs
- FontCollection.cs
- ExtendedPropertyCollection.cs
- ColumnResult.cs