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
- ResourcePool.cs
- mediapermission.cs
- COM2Enum.cs
- StringDictionaryEditor.cs
- WindowsGraphicsWrapper.cs
- invalidudtexception.cs
- SiteMapNodeItemEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- GridViewUpdateEventArgs.cs
- XmlSignificantWhitespace.cs
- MenuItemBindingCollection.cs
- KeyboardDevice.cs
- Native.cs
- AuthenticatingEventArgs.cs
- HandleCollector.cs
- CodeDomConfigurationHandler.cs
- WsdlInspector.cs
- SubclassTypeValidator.cs
- TimeZone.cs
- BitmapEncoder.cs
- RawKeyboardInputReport.cs
- InvokePattern.cs
- HttpWebRequestElement.cs
- EdmPropertyAttribute.cs
- DataKey.cs
- FlowDocumentPageViewerAutomationPeer.cs
- HandlerWithFactory.cs
- XmlResolver.cs
- TreeNode.cs
- DataChangedEventManager.cs
- SymmetricKey.cs
- SymDocumentType.cs
- SortableBindingList.cs
- PageWrapper.cs
- SmiRequestExecutor.cs
- ConstraintManager.cs
- Privilege.cs
- _BufferOffsetSize.cs
- SqlAliasesReferenced.cs
- TranslateTransform.cs
- ComEventsMethod.cs
- ResourceExpressionEditorSheet.cs
- ToolStripPanelRow.cs
- COSERVERINFO.cs
- AvTraceDetails.cs
- ListViewCancelEventArgs.cs
- Debug.cs
- XmlConverter.cs
- XmlDataLoader.cs
- XsltLoader.cs
- securitycriticaldata.cs
- SizeAnimationClockResource.cs
- PersistenceTypeAttribute.cs
- ComEventsHelper.cs
- HostProtectionPermission.cs
- SerializableAttribute.cs
- BitConverter.cs
- StreamReader.cs
- CaseInsensitiveOrdinalStringComparer.cs
- AnnotationService.cs
- RuntimeResourceSet.cs
- OutKeywords.cs
- BrowsableAttribute.cs
- LocatorManager.cs
- EntityConnectionStringBuilder.cs
- RectangleF.cs
- ParallelRangeManager.cs
- SelectionGlyphBase.cs
- mda.cs
- SubclassTypeValidator.cs
- StringFormat.cs
- SettingsBindableAttribute.cs
- HtmlControl.cs
- DBParameter.cs
- _HeaderInfoTable.cs
- Array.cs
- ListViewGroupItemCollection.cs
- NameTable.cs
- ResourceCategoryAttribute.cs
- SerializerProvider.cs
- Compensate.cs
- PropertyAccessVisitor.cs
- Binding.cs
- IndentTextWriter.cs
- PathGeometry.cs
- CatalogPart.cs
- EventArgs.cs
- ServiceHttpModule.cs
- FileAuthorizationModule.cs
- BindingRestrictions.cs
- SettingsBindableAttribute.cs
- ConnectionInterfaceCollection.cs
- ExceptionUtil.cs
- LoginName.cs
- Timer.cs
- DomainConstraint.cs
- DynamicRendererThreadManager.cs
- PublishLicense.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HtmlElementEventArgs.cs