Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KeyBinding.cs
- CharacterHit.cs
- FacetDescriptionElement.cs
- HtmlInputHidden.cs
- WebPartActionVerb.cs
- controlskin.cs
- TTSEngineProxy.cs
- StreamWriter.cs
- TimerExtension.cs
- BindingExpression.cs
- DrawToolTipEventArgs.cs
- SamlAuthorityBinding.cs
- MessageQueuePermissionAttribute.cs
- TableSectionStyle.cs
- IdentityModelDictionary.cs
- TransactionBridge.cs
- QueueProcessor.cs
- SystemGatewayIPAddressInformation.cs
- PagerSettings.cs
- XsdCachingReader.cs
- HtmlHead.cs
- NCryptSafeHandles.cs
- UncommonField.cs
- CodeTypeMember.cs
- ErrorProvider.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DesignerResources.cs
- DelegateBodyWriter.cs
- ContentWrapperAttribute.cs
- BaseAppDomainProtocolHandler.cs
- TextSelectionHelper.cs
- CollectionConverter.cs
- FontStretches.cs
- LoginUtil.cs
- ColumnResizeUndoUnit.cs
- SqlNotificationRequest.cs
- OutputCacheSettings.cs
- Table.cs
- DefaultSection.cs
- GridViewCancelEditEventArgs.cs
- Char.cs
- XpsFont.cs
- DBSqlParserTable.cs
- SetterBase.cs
- CapabilitiesState.cs
- SystemIcmpV4Statistics.cs
- MemberHolder.cs
- RecordManager.cs
- BuildDependencySet.cs
- Baml2006ReaderSettings.cs
- HGlobalSafeHandle.cs
- UriScheme.cs
- XmlComment.cs
- RadioButton.cs
- DependencyPropertyAttribute.cs
- CodeTypeParameter.cs
- ContractUtils.cs
- ScriptingSectionGroup.cs
- BaseDataList.cs
- KeyTime.cs
- PointConverter.cs
- TypefaceMap.cs
- CompositeFontInfo.cs
- QilReplaceVisitor.cs
- UpdatePanelTrigger.cs
- TrackBarRenderer.cs
- State.cs
- PeerCollaboration.cs
- ObjectPersistData.cs
- EntityConnectionStringBuilder.cs
- XamlSerializationHelper.cs
- QilLoop.cs
- sqlnorm.cs
- DataGridCell.cs
- SspiSafeHandles.cs
- DataControlExtensions.cs
- TextParaLineResult.cs
- DetailsViewCommandEventArgs.cs
- ClientBuildManager.cs
- DataBinder.cs
- MultiPartWriter.cs
- CatalogPart.cs
- HttpProtocolReflector.cs
- LowerCaseStringConverter.cs
- InfoCardArgumentException.cs
- TypographyProperties.cs
- Selection.cs
- ObjectQuery_EntitySqlExtensions.cs
- ViewStateModeByIdAttribute.cs
- DataGridColumn.cs
- HttpRequest.cs
- AnnotationAuthorChangedEventArgs.cs
- DurableServiceAttribute.cs
- Helpers.cs
- Byte.cs
- EntityDataSourceViewSchema.cs
- ParameterSubsegment.cs
- XmlSchemaGroupRef.cs
- FlatButtonAppearance.cs
- PrintDialog.cs