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
- ConfigurationConverterBase.cs
- PromptBuilder.cs
- QueryActivatableWorkflowsCommand.cs
- ProcessModuleDesigner.cs
- MethodBuilderInstantiation.cs
- TypeInfo.cs
- QilBinary.cs
- CacheEntry.cs
- CollectionChangedEventManager.cs
- HttpGetServerProtocol.cs
- UpDownBaseDesigner.cs
- UTF32Encoding.cs
- NodeInfo.cs
- HttpCookieCollection.cs
- ItemAutomationPeer.cs
- CultureMapper.cs
- FixedPageAutomationPeer.cs
- TraceHandlerErrorFormatter.cs
- DataGridViewHitTestInfo.cs
- RawAppCommandInputReport.cs
- TextEffect.cs
- FunctionDetailsReader.cs
- SafeRightsManagementHandle.cs
- ModulesEntry.cs
- ReferencedAssemblyResolver.cs
- AccessibleObject.cs
- RijndaelManagedTransform.cs
- TextAutomationPeer.cs
- ToolStripDropDownButton.cs
- WmlValidationSummaryAdapter.cs
- DataPagerFieldCommandEventArgs.cs
- SecurityRuntime.cs
- Stylesheet.cs
- ViewValidator.cs
- TripleDESCryptoServiceProvider.cs
- XmlNodeWriter.cs
- connectionpool.cs
- XpsS0ValidatingLoader.cs
- TextRunProperties.cs
- ThumbAutomationPeer.cs
- RoutedCommand.cs
- ValueProviderWrapper.cs
- CopyAction.cs
- ExpressionParser.cs
- XmlNullResolver.cs
- XmlLoader.cs
- ProgressBar.cs
- XamlReader.cs
- MessageQueuePermissionEntryCollection.cs
- DataColumnChangeEvent.cs
- unitconverter.cs
- ClickablePoint.cs
- ToolBarPanel.cs
- InvokeGenerator.cs
- XhtmlBasicCommandAdapter.cs
- IBuiltInEvidence.cs
- x509store.cs
- MarkupCompilePass2.cs
- XmlArrayItemAttributes.cs
- ArgumentNullException.cs
- HWStack.cs
- CustomTypeDescriptor.cs
- CharEnumerator.cs
- PersianCalendar.cs
- WebBrowserNavigatedEventHandler.cs
- SerializationInfoEnumerator.cs
- NotCondition.cs
- ExtensionWindow.cs
- OracleConnectionFactory.cs
- XPathChildIterator.cs
- IDispatchConstantAttribute.cs
- AdRotator.cs
- FormattedTextSymbols.cs
- ExcCanonicalXml.cs
- SqlDelegatedTransaction.cs
- XmlMtomReader.cs
- QilXmlReader.cs
- XmlCompatibilityReader.cs
- TypeSystem.cs
- WebConfigurationHostFileChange.cs
- LicFileLicenseProvider.cs
- DoubleLinkList.cs
- CodeDOMProvider.cs
- EdmError.cs
- SafeEventLogReadHandle.cs
- TextureBrush.cs
- MessageContractMemberAttribute.cs
- StylusPointPropertyId.cs
- TraceEventCache.cs
- OletxCommittableTransaction.cs
- DataGridPageChangedEventArgs.cs
- PrintSystemException.cs
- PointConverter.cs
- ReadOnlyMetadataCollection.cs
- Simplifier.cs
- ConfigurationErrorsException.cs
- _SecureChannel.cs
- ComAwareEventInfo.cs
- RangeValidator.cs
- TypeConverterHelper.cs