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
- PaperSize.cs
- _ConnectOverlappedAsyncResult.cs
- String.cs
- TreeNodeSelectionProcessor.cs
- ProfileSettings.cs
- CorrelationQuery.cs
- Helper.cs
- CodeDirectionExpression.cs
- ListView.cs
- StringValueSerializer.cs
- ClientSettingsStore.cs
- InternalsVisibleToAttribute.cs
- Section.cs
- ResXResourceReader.cs
- HtmlHead.cs
- Types.cs
- HtmlTableRowCollection.cs
- FactoryRecord.cs
- DataControlLinkButton.cs
- SqlAliaser.cs
- DataServiceException.cs
- CustomAttributeBuilder.cs
- RowType.cs
- MethodRental.cs
- IsolatedStoragePermission.cs
- WorkflowTimerService.cs
- CqlQuery.cs
- Variable.cs
- TypeUtils.cs
- SendContent.cs
- adornercollection.cs
- ScrollEvent.cs
- ActivationArguments.cs
- DeclarativeCatalogPart.cs
- HyperLink.cs
- UIPermission.cs
- CompiledQuery.cs
- ErrorProvider.cs
- _NtlmClient.cs
- TextSpanModifier.cs
- LinearGradientBrush.cs
- DataTableNameHandler.cs
- SelectedGridItemChangedEvent.cs
- ConfigurationValidatorAttribute.cs
- TrustLevel.cs
- DataServiceProcessingPipelineEventArgs.cs
- LocalizedNameDescriptionPair.cs
- dataSvcMapFileLoader.cs
- RequestQueue.cs
- OperationResponse.cs
- SystemSounds.cs
- QilVisitor.cs
- HttpRawResponse.cs
- ColorAnimation.cs
- Brush.cs
- TreeViewAutomationPeer.cs
- BindUriHelper.cs
- DataGridViewLayoutData.cs
- WebServiceHandlerFactory.cs
- MetadataItem_Static.cs
- FilterException.cs
- ValidationErrorEventArgs.cs
- PropertiesTab.cs
- DocumentGridPage.cs
- FixedSOMPageElement.cs
- ClientTargetSection.cs
- InkSerializer.cs
- Substitution.cs
- UrlEncodedParameterWriter.cs
- OrderingInfo.cs
- ZipPackagePart.cs
- CustomBindingElement.cs
- SQLInt32.cs
- RSAProtectedConfigurationProvider.cs
- CryptoConfig.cs
- ServiceBuildProvider.cs
- LinqDataSourceValidationException.cs
- EditorPartChrome.cs
- RootDesignerSerializerAttribute.cs
- RequestCache.cs
- HeaderCollection.cs
- SmtpNtlmAuthenticationModule.cs
- BinaryEditor.cs
- DataGridViewControlCollection.cs
- SerializerWriterEventHandlers.cs
- TextLineBreak.cs
- XPathNavigator.cs
- GAC.cs
- DivideByZeroException.cs
- NavigationProperty.cs
- CallbackException.cs
- LinkConverter.cs
- XmlNodeReader.cs
- input.cs
- SessionPageStatePersister.cs
- AsymmetricSecurityProtocol.cs
- XmlSchemaType.cs
- InheritanceContextChangedEventManager.cs
- DbProviderConfigurationHandler.cs
- Permission.cs