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
- SecurityRequiresReviewAttribute.cs
- TrackingExtract.cs
- RichTextBox.cs
- TextParaLineResult.cs
- ListParagraph.cs
- Site.cs
- EntityWithChangeTrackerStrategy.cs
- MultipleViewPattern.cs
- WebPartConnectionsCancelEventArgs.cs
- IntranetCredentialPolicy.cs
- AppDomainFactory.cs
- TrackBarRenderer.cs
- FixedSOMPageConstructor.cs
- QilReplaceVisitor.cs
- FixedLineResult.cs
- GenericTextProperties.cs
- AffineTransform3D.cs
- CheckableControlBaseAdapter.cs
- NullRuntimeConfig.cs
- MasterPageBuildProvider.cs
- DateTimeHelper.cs
- AbsoluteQuery.cs
- InputBindingCollection.cs
- _NegotiateClient.cs
- sqlcontext.cs
- ActivityTypeDesigner.xaml.cs
- TypeCodeDomSerializer.cs
- TemplateBuilder.cs
- ClientSection.cs
- AssemblyNameProxy.cs
- UIEndRequest.cs
- SecurityAlgorithmSuite.cs
- SecureStringHasher.cs
- WizardStepCollectionEditor.cs
- SymbolTable.cs
- AsyncStreamReader.cs
- RecognizedAudio.cs
- GridViewUpdatedEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ObjectListCommandsPage.cs
- XmlRootAttribute.cs
- RouteItem.cs
- DependencyObjectPropertyDescriptor.cs
- UInt16Converter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FontStyle.cs
- PeerTransportElement.cs
- LabelDesigner.cs
- BaseProcessProtocolHandler.cs
- XmlCharType.cs
- SimpleRecyclingCache.cs
- TreeViewBindingsEditor.cs
- CodeExporter.cs
- AuthenticationConfig.cs
- TextEditorContextMenu.cs
- XmlFormatExtensionPointAttribute.cs
- Encoder.cs
- AggregateNode.cs
- FtpCachePolicyElement.cs
- MappingItemCollection.cs
- DataSourceSelectArguments.cs
- IdentityManager.cs
- baseaxisquery.cs
- SafeCryptoHandles.cs
- DataStorage.cs
- RequestResizeEvent.cs
- Point3DCollection.cs
- ConfigurationPermission.cs
- ArraySubsetEnumerator.cs
- CodeNamespaceImport.cs
- ShapingEngine.cs
- DataExpression.cs
- MbpInfo.cs
- HorizontalAlignConverter.cs
- IsolatedStorage.cs
- SafeNativeMethods.cs
- KnowledgeBase.cs
- UnicodeEncoding.cs
- HttpCapabilitiesBase.cs
- IConvertible.cs
- BaseAddressPrefixFilterElementCollection.cs
- MultiView.cs
- SqlCommandSet.cs
- DataObjectAttribute.cs
- SmtpSection.cs
- SocketInformation.cs
- InstanceKeyCollisionException.cs
- ListViewDeletedEventArgs.cs
- MobileCategoryAttribute.cs
- SqlNotificationRequest.cs
- ByteStreamGeometryContext.cs
- DataTemplateSelector.cs
- TableColumn.cs
- TextElementEditingBehaviorAttribute.cs
- ObjectMemberMapping.cs
- Evidence.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SizeF.cs
- SubMenuStyle.cs
- _SafeNetHandles.cs