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
- CodeAssignStatement.cs
- ButtonField.cs
- OleDbRowUpdatingEvent.cs
- PopupRoot.cs
- CodeThrowExceptionStatement.cs
- JournalNavigationScope.cs
- XmlILCommand.cs
- OdbcEnvironmentHandle.cs
- SoapAttributeOverrides.cs
- SessionStateItemCollection.cs
- InstanceData.cs
- StickyNoteContentControl.cs
- DocumentXPathNavigator.cs
- BounceEase.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Form.cs
- Monitor.cs
- WebBrowserDesigner.cs
- StyleModeStack.cs
- XPathDocument.cs
- FileCodeGroup.cs
- DerivedKeySecurityTokenStub.cs
- WebBrowserBase.cs
- ValueType.cs
- IntSecurity.cs
- DependencySource.cs
- CheckBoxAutomationPeer.cs
- VisemeEventArgs.cs
- WindowsStatic.cs
- RegexRunnerFactory.cs
- Vector3DCollectionValueSerializer.cs
- StorageEntitySetMapping.cs
- SocketException.cs
- DrawingVisual.cs
- LayoutTable.cs
- DataGridViewColumnHeaderCell.cs
- EventLogQuery.cs
- ImplicitInputBrush.cs
- StorageInfo.cs
- EdmComplexTypeAttribute.cs
- SerializationSectionGroup.cs
- EmbeddedMailObjectsCollection.cs
- DbConvert.cs
- PopOutPanel.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DelimitedListTraceListener.cs
- WindowsContainer.cs
- LinqDataSourceValidationException.cs
- MailMessageEventArgs.cs
- EncryptedKey.cs
- PageAdapter.cs
- FastPropertyAccessor.cs
- TemplateParser.cs
- DrawingContextWalker.cs
- DebugView.cs
- LogLogRecord.cs
- ClientTargetCollection.cs
- Style.cs
- StaticTextPointer.cs
- XmlWrappingWriter.cs
- SymLanguageVendor.cs
- MSAANativeProvider.cs
- CheckBoxField.cs
- AttributeTable.cs
- ListViewDataItem.cs
- HtmlInputHidden.cs
- TrackingServices.cs
- CodeExpressionCollection.cs
- Int32AnimationUsingKeyFrames.cs
- TaskFactory.cs
- SerializationUtilities.cs
- JsonReader.cs
- ExpressionBuilderCollection.cs
- CutCopyPasteHelper.cs
- HMACSHA512.cs
- TypedServiceChannelBuilder.cs
- RestClientProxyHandler.cs
- ViewValidator.cs
- ArrayElementGridEntry.cs
- BackStopAuthenticationModule.cs
- LoadWorkflowByKeyAsyncResult.cs
- ProcessThreadCollection.cs
- BCLDebug.cs
- MatrixTransform3D.cs
- VariantWrapper.cs
- PointLightBase.cs
- ProxyGenerator.cs
- FrameDimension.cs
- FunctionOverloadResolver.cs
- InheritanceService.cs
- ScriptReferenceEventArgs.cs
- CodeTypeDeclarationCollection.cs
- EntityDataSourceWrapperCollection.cs
- Point3DAnimationBase.cs
- XmlAttributeHolder.cs
- SapiGrammar.cs
- ImageEditor.cs
- RadioButtonAutomationPeer.cs
- Currency.cs
- CanonicalFontFamilyReference.cs