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
- ActiveXHelper.cs
- ChannelFactory.cs
- DataFieldEditor.cs
- StreamGeometryContext.cs
- ContentPathSegment.cs
- SplitContainer.cs
- TreeBuilder.cs
- _NegoStream.cs
- LogicalExpressionTypeConverter.cs
- XPathNavigatorReader.cs
- AdapterUtil.cs
- PartialArray.cs
- RangeValueProviderWrapper.cs
- Emitter.cs
- PeerReferralPolicy.cs
- DropShadowEffect.cs
- ValueQuery.cs
- FileStream.cs
- TreeNodeBinding.cs
- RegistryPermission.cs
- CompositeScriptReference.cs
- ArgumentException.cs
- COMException.cs
- IgnoreFlushAndCloseStream.cs
- AssociationProvider.cs
- ListDependantCardsRequest.cs
- CollectionsUtil.cs
- ToolboxItemFilterAttribute.cs
- TreeNodeBinding.cs
- StrongNameMembershipCondition.cs
- RenderDataDrawingContext.cs
- FtpCachePolicyElement.cs
- XmlDataSource.cs
- NavigationHelper.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- SurrogateDataContract.cs
- SQLInt64.cs
- FileDialog.cs
- XmlKeywords.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OptimalBreakSession.cs
- ClientScriptManager.cs
- DodSequenceMerge.cs
- ApplicationHost.cs
- CommandBinding.cs
- KeyedCollection.cs
- ValidationEventArgs.cs
- UseAttributeSetsAction.cs
- DependencyProperty.cs
- NamedServiceModelExtensionCollectionElement.cs
- PlatformNotSupportedException.cs
- MatchingStyle.cs
- GeneratedContractType.cs
- Normalization.cs
- WebContext.cs
- ToolStripArrowRenderEventArgs.cs
- DesigntimeLicenseContextSerializer.cs
- TemplatedWizardStep.cs
- TreeNodeBindingCollection.cs
- TemplatePagerField.cs
- OdbcConnection.cs
- CheckBoxFlatAdapter.cs
- Triangle.cs
- XmlAttributeProperties.cs
- FilteredAttributeCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- StylusPointPropertyUnit.cs
- XslAst.cs
- DataGridViewCheckBoxColumn.cs
- WhitespaceRuleReader.cs
- InternalSafeNativeMethods.cs
- OdbcErrorCollection.cs
- FontSource.cs
- WebPartDisplayMode.cs
- DbParameterCollection.cs
- KeyboardNavigation.cs
- BinaryObjectWriter.cs
- EasingKeyFrames.cs
- StorageComplexPropertyMapping.cs
- BStrWrapper.cs
- MetadataCollection.cs
- EmptyCollection.cs
- RegexRunner.cs
- ToolStripTextBox.cs
- FragmentQuery.cs
- PageCodeDomTreeGenerator.cs
- CodeTypeReferenceExpression.cs
- ConstraintStruct.cs
- LocatorPart.cs
- FileNotFoundException.cs
- EntityContainerRelationshipSetEnd.cs
- EntityRecordInfo.cs
- SimpleType.cs
- oledbconnectionstring.cs
- FieldDescriptor.cs
- AttachedAnnotationChangedEventArgs.cs
- FixedPageStructure.cs
- HMACSHA1.cs
- TextServicesCompartmentContext.cs
- EntityDataSourceContainerNameItem.cs