Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Attributes.cs
- EntityWithKeyStrategy.cs
- RemotingException.cs
- ConfigurationFileMap.cs
- DrawTreeNodeEventArgs.cs
- XmlDictionary.cs
- XmlFormatExtensionAttribute.cs
- EventLogPermissionAttribute.cs
- RowSpanVector.cs
- XamlPathDataSerializer.cs
- XmlUnspecifiedAttribute.cs
- Transform3D.cs
- ButtonAutomationPeer.cs
- Page.cs
- StreamInfo.cs
- GradientBrush.cs
- mediaclock.cs
- TableProviderWrapper.cs
- WebControl.cs
- BitmapEffectDrawing.cs
- AbsoluteQuery.cs
- SingletonConnectionReader.cs
- DataStorage.cs
- TrimSurroundingWhitespaceAttribute.cs
- Section.cs
- HealthMonitoringSectionHelper.cs
- SafeMarshalContext.cs
- ErrorHandler.cs
- ResolveResponseInfo.cs
- TableChangeProcessor.cs
- ParserContext.cs
- PeerCredential.cs
- PagePropertiesChangingEventArgs.cs
- ZipIOExtraField.cs
- InstanceDescriptor.cs
- SortQuery.cs
- ValidationPropertyAttribute.cs
- Delegate.cs
- _BaseOverlappedAsyncResult.cs
- InheritanceRules.cs
- GlobalizationSection.cs
- ToolStripMenuItemCodeDomSerializer.cs
- TextDecorationLocationValidation.cs
- CacheMemory.cs
- ButtonBase.cs
- QilIterator.cs
- AlternateViewCollection.cs
- ClientSettings.cs
- StatusInfoItem.cs
- MetadataCacheItem.cs
- PaperSize.cs
- UIPropertyMetadata.cs
- XmlSchema.cs
- RoutingSection.cs
- ExpressionPrinter.cs
- StateBag.cs
- SQLMembershipProvider.cs
- DeviceOverridableAttribute.cs
- IOThreadScheduler.cs
- PropertyExpression.cs
- SyndicationElementExtension.cs
- MenuAutoFormat.cs
- CodeTypeMember.cs
- HitTestParameters3D.cs
- MimeParameter.cs
- ToolboxItemAttribute.cs
- PackagePart.cs
- GeneralTransform2DTo3DTo2D.cs
- MSG.cs
- ContourSegment.cs
- BindingBase.cs
- TreeNodeClickEventArgs.cs
- RecognitionEventArgs.cs
- XsltLoader.cs
- DataPointer.cs
- CoreSwitches.cs
- Translator.cs
- RequiredFieldValidator.cs
- BitStack.cs
- WebPartCancelEventArgs.cs
- WebRequest.cs
- CheckBox.cs
- BasicHttpMessageSecurity.cs
- ScriptingJsonSerializationSection.cs
- CodeVariableDeclarationStatement.cs
- DispatcherProcessingDisabled.cs
- RectValueSerializer.cs
- Underline.cs
- GridItemPattern.cs
- brushes.cs
- KeyEventArgs.cs
- PasswordPropertyTextAttribute.cs
- CharacterShapingProperties.cs
- HyperLink.cs
- AtomServiceDocumentSerializer.cs
- DoubleCollectionConverter.cs
- WsdlImporterElement.cs
- FontStretches.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridViewRowPostPaintEventArgs.cs