Code:
/ DotNET / DotNET / 8.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
- InkCanvasAutomationPeer.cs
- ValueHandle.cs
- Unit.cs
- Empty.cs
- HttpException.cs
- DifferencingCollection.cs
- XPathSelfQuery.cs
- SqlDataReader.cs
- InvokeDelegate.cs
- TreeView.cs
- TouchDevice.cs
- KeyGesture.cs
- TableCell.cs
- SoapException.cs
- HTTPNotFoundHandler.cs
- Vector3DCollection.cs
- WpfSharedBamlSchemaContext.cs
- SqlCacheDependencyDatabaseCollection.cs
- AnimationStorage.cs
- SqlGenericUtil.cs
- SystemPens.cs
- ListComponentEditorPage.cs
- HtmlElementCollection.cs
- TextElementCollection.cs
- GenericRootAutomationPeer.cs
- ConnectionStringsSection.cs
- XmlUTF8TextReader.cs
- DateTimePicker.cs
- SecureStringHasher.cs
- DBCommand.cs
- SQLSingleStorage.cs
- ErrorHandlingAcceptor.cs
- EdmRelationshipRoleAttribute.cs
- XPathParser.cs
- WebPartDisplayMode.cs
- LinkConverter.cs
- HttpContextWrapper.cs
- unsafenativemethodstextservices.cs
- SerializationFieldInfo.cs
- BinHexEncoder.cs
- ProgramNode.cs
- ConstNode.cs
- TextTreeDeleteContentUndoUnit.cs
- ValidationVisibilityAttribute.cs
- WebPartDisplayMode.cs
- ModelTreeManager.cs
- EntityDataSourceDesigner.cs
- ScriptResourceAttribute.cs
- ViewStateException.cs
- XmlReader.cs
- CodeVariableDeclarationStatement.cs
- WebCategoryAttribute.cs
- Math.cs
- Variable.cs
- VersionPair.cs
- WindowShowOrOpenTracker.cs
- FaultPropagationQuery.cs
- Helper.cs
- login.cs
- Cell.cs
- OutputScope.cs
- SetIterators.cs
- UnsafeNativeMethods.cs
- BookmarkEventArgs.cs
- MediaElement.cs
- UrlMappingsSection.cs
- StrokeCollectionConverter.cs
- Transform3DGroup.cs
- LineGeometry.cs
- GridErrorDlg.cs
- ExpressionTextBoxAutomationPeer.cs
- Interlocked.cs
- HelpEvent.cs
- localization.cs
- PropertyGrid.cs
- BuildProviderAppliesToAttribute.cs
- TemplatedAdorner.cs
- UTF7Encoding.cs
- HtmlFormParameterReader.cs
- unsafenativemethodsother.cs
- Type.cs
- BitmapEffectState.cs
- xdrvalidator.cs
- TraceContextRecord.cs
- FileDialog.cs
- FuncTypeConverter.cs
- assemblycache.cs
- RewritingProcessor.cs
- RegexGroup.cs
- PageThemeBuildProvider.cs
- SimpleFileLog.cs
- WorkflowMessageEventArgs.cs
- CollectionChangedEventManager.cs
- EventWaitHandleSecurity.cs
- DecimalKeyFrameCollection.cs
- Helper.cs
- ObjectPersistData.cs
- ObjectSet.cs
- BuildProvider.cs
- _DomainName.cs