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
- ProgressBar.cs
- RedistVersionInfo.cs
- DataRecordObjectView.cs
- CommentGlyph.cs
- ListViewCommandEventArgs.cs
- PackageDigitalSignature.cs
- UnsafeNativeMethods.cs
- AuthenticodeSignatureInformation.cs
- ColorConverter.cs
- EventMappingSettingsCollection.cs
- ParagraphResult.cs
- ComplexType.cs
- Wrapper.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- WorkflowTraceTransfer.cs
- SettingsAttributes.cs
- XamlStackWriter.cs
- SQLBinary.cs
- ValidationSettings.cs
- Point.cs
- odbcmetadatacollectionnames.cs
- WindowsRichEdit.cs
- Dictionary.cs
- WorkflowServiceAttributes.cs
- WindowsGraphicsCacheManager.cs
- SemanticResultKey.cs
- FillErrorEventArgs.cs
- OrderByExpression.cs
- CookieHandler.cs
- SchemaInfo.cs
- FixedSOMTableCell.cs
- VectorAnimation.cs
- SafeNativeMethods.cs
- ListBox.cs
- DesignTimeParseData.cs
- DataGridItem.cs
- WindowsSpinner.cs
- SqlCaseSimplifier.cs
- ValidatorUtils.cs
- Environment.cs
- ApplicationDirectoryMembershipCondition.cs
- KnownTypesProvider.cs
- StylusPointPropertyInfo.cs
- HtmlSelect.cs
- DynamicResourceExtension.cs
- OleDbPermission.cs
- IdentifierElement.cs
- TextDpi.cs
- SystemFonts.cs
- DataTableMapping.cs
- QueuePropertyVariants.cs
- RegistryPermission.cs
- RightsManagementPermission.cs
- HandlerBase.cs
- WebPartsPersonalizationAuthorization.cs
- DataGridViewAddColumnDialog.cs
- QueueProcessor.cs
- DataGridToolTip.cs
- DbModificationCommandTree.cs
- ChannelEndpointElement.cs
- ChannelBinding.cs
- NamespaceInfo.cs
- DocumentViewerAutomationPeer.cs
- Zone.cs
- UserControl.cs
- ScalarOps.cs
- CustomActivityDesigner.cs
- TypedTableBaseExtensions.cs
- NoneExcludedImageIndexConverter.cs
- CustomPopupPlacement.cs
- NumberAction.cs
- ReflectPropertyDescriptor.cs
- CellTreeNode.cs
- OptimalBreakSession.cs
- StringSource.cs
- HotCommands.cs
- UdpDiscoveryEndpointElement.cs
- PolicyStatement.cs
- FontStyleConverter.cs
- SamlDoNotCacheCondition.cs
- ResXResourceWriter.cs
- FixedHighlight.cs
- JavaScriptObjectDeserializer.cs
- GeneratedView.cs
- CrossAppDomainChannel.cs
- Rect3D.cs
- PassportPrincipal.cs
- DataKeyCollection.cs
- ResourceAttributes.cs
- XmlTypeAttribute.cs
- RSACryptoServiceProvider.cs
- StackSpiller.cs
- FileSystemWatcher.cs
- DefaultMemberAttribute.cs
- XmlReaderSettings.cs
- DbConnectionStringCommon.cs
- TypeDescriptionProvider.cs
- ApplyImportsAction.cs
- CommandLibraryHelper.cs
- ModelFunction.cs