Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UserUseLicenseDictionaryLoader.cs
- BaseParaClient.cs
- CompiledQuery.cs
- TreeNodeCollection.cs
- WindowInteropHelper.cs
- SupportingTokenSecurityTokenResolver.cs
- NavigationExpr.cs
- ProfessionalColors.cs
- DefaultTextStore.cs
- log.cs
- ProfilePropertySettingsCollection.cs
- DecoderReplacementFallback.cs
- DebuggerAttributes.cs
- TraceHandler.cs
- ListBoxItem.cs
- MDIClient.cs
- Span.cs
- PolicyChain.cs
- ToolStripOverflow.cs
- FormsAuthenticationUserCollection.cs
- SHA256CryptoServiceProvider.cs
- BamlResourceSerializer.cs
- WorkflowRuntimeSection.cs
- SessionEndingEventArgs.cs
- Int16KeyFrameCollection.cs
- MemoryMappedView.cs
- WinFormsSecurity.cs
- DetailsViewRowCollection.cs
- ContextToken.cs
- DelegatingTypeDescriptionProvider.cs
- RoleGroupCollection.cs
- FilteredDataSetHelper.cs
- ByteStack.cs
- unsafeIndexingFilterStream.cs
- TileBrush.cs
- ObjectStateManager.cs
- FaultImportOptions.cs
- ObjectDataSourceStatusEventArgs.cs
- RegexFCD.cs
- WinEventWrap.cs
- TextStore.cs
- BitmapImage.cs
- InternalBufferOverflowException.cs
- MetadataPropertyCollection.cs
- RenderingBiasValidation.cs
- SettingsBindableAttribute.cs
- EventSinkHelperWriter.cs
- ResourceExpressionBuilder.cs
- RegexTypeEditor.cs
- UInt64Converter.cs
- TextEditorTables.cs
- OracleDateTime.cs
- ToolStripArrowRenderEventArgs.cs
- PeerNameRecord.cs
- CodeDelegateInvokeExpression.cs
- ResourceDescriptionAttribute.cs
- FormsAuthentication.cs
- ModulesEntry.cs
- Span.cs
- GenericUriParser.cs
- MethodBuilderInstantiation.cs
- BezierSegment.cs
- FixedTextView.cs
- RowToParametersTransformer.cs
- TypeLibConverter.cs
- UserPreferenceChangingEventArgs.cs
- SEHException.cs
- SiteMapDataSource.cs
- TypeConverter.cs
- Point4D.cs
- CodeChecksumPragma.cs
- Vector3DAnimationUsingKeyFrames.cs
- InternalResources.cs
- DiagnosticTrace.cs
- TableLayoutPanelCellPosition.cs
- ToolStripItemDataObject.cs
- MessageQueueInstaller.cs
- odbcmetadatafactory.cs
- __Filters.cs
- NodeCounter.cs
- TTSVoice.cs
- HttpRequest.cs
- DataGridRowClipboardEventArgs.cs
- FlatButtonAppearance.cs
- IdleTimeoutMonitor.cs
- MaskedTextBoxDesigner.cs
- HttpRuntimeSection.cs
- _PooledStream.cs
- _HeaderInfo.cs
- SafeWaitHandle.cs
- DoWorkEventArgs.cs
- PermissionAttributes.cs
- Win32MouseDevice.cs
- CqlErrorHelper.cs
- FileUtil.cs
- ProviderCollection.cs
- HttpCookiesSection.cs
- DomainUpDown.cs
- ServerValidateEventArgs.cs
- HyperLinkColumn.cs