Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1 / 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; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoutedEvent.cs
- FrameworkPropertyMetadata.cs
- StsCommunicationException.cs
- DecodeHelper.cs
- MenuAdapter.cs
- PropertyIDSet.cs
- XmlAggregates.cs
- TemplateBindingExtensionConverter.cs
- IsolatedStoragePermission.cs
- WindowsEditBoxRange.cs
- Paragraph.cs
- NamespaceCollection.cs
- SelectedCellsCollection.cs
- WebSysDisplayNameAttribute.cs
- ScrollChrome.cs
- UIElement3DAutomationPeer.cs
- GiveFeedbackEventArgs.cs
- CheckBoxRenderer.cs
- InnerItemCollectionView.cs
- DayRenderEvent.cs
- CompilationSection.cs
- ModelUIElement3D.cs
- GlyphRunDrawing.cs
- OdbcInfoMessageEvent.cs
- CopyOnWriteList.cs
- CapabilitiesUse.cs
- DateTimeAutomationPeer.cs
- SimpleMailWebEventProvider.cs
- ListViewInsertEventArgs.cs
- RoleServiceManager.cs
- FtpWebResponse.cs
- UpdatePanel.cs
- RemotingAttributes.cs
- TraceLevelStore.cs
- PropertyTab.cs
- XmlIterators.cs
- PeerDuplexChannel.cs
- ToolboxCategory.cs
- PolicyLevel.cs
- ToolStripRendererSwitcher.cs
- StylusCaptureWithinProperty.cs
- StyleBamlRecordReader.cs
- DecoderFallback.cs
- SmtpNtlmAuthenticationModule.cs
- DropShadowEffect.cs
- DataColumnMappingCollection.cs
- AuthorizationRule.cs
- VisualBasicValue.cs
- UTF8Encoding.cs
- CurrencyWrapper.cs
- SQLInt64Storage.cs
- XmlDocumentFragment.cs
- HttpSessionStateBase.cs
- MonikerBuilder.cs
- CreateUserErrorEventArgs.cs
- WebScriptMetadataMessageEncoderFactory.cs
- WindowsSysHeader.cs
- DataRowCollection.cs
- SqlMethodTransformer.cs
- XmlSchemaIdentityConstraint.cs
- MarkupCompiler.cs
- TableCellCollection.cs
- RequiredFieldValidator.cs
- MessageQueue.cs
- RenderingEventArgs.cs
- TaskHelper.cs
- ExceptionUtility.cs
- SatelliteContractVersionAttribute.cs
- WebCategoryAttribute.cs
- SimpleHandlerBuildProvider.cs
- AccessDataSourceView.cs
- ToolboxBitmapAttribute.cs
- SupportingTokenBindingElement.cs
- DesignerInterfaces.cs
- SiteMapPath.cs
- IndicFontClient.cs
- FileInfo.cs
- NoClickablePointException.cs
- MailAddressCollection.cs
- MenuAutoFormat.cs
- ExpressionList.cs
- ReversePositionQuery.cs
- ClickablePoint.cs
- SessionStateModule.cs
- MemoryStream.cs
- MemberAccessException.cs
- BinaryParser.cs
- ObjectPersistData.cs
- MouseActionConverter.cs
- DataGridViewIntLinkedList.cs
- InstanceData.cs
- MonthChangedEventArgs.cs
- SafeProcessHandle.cs
- ChangeNode.cs
- XmlFileEditor.cs
- JournalEntryStack.cs
- Config.cs
- OlePropertyStructs.cs
- NominalTypeEliminator.cs
- BroadcastEventHelper.cs