Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ScrollItemPattern.cs
- CodeStatementCollection.cs
- NonBatchDirectoryCompiler.cs
- UserMapPath.cs
- ParallelTimeline.cs
- ImmComposition.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TabControl.cs
- DateTimeParse.cs
- Scene3D.cs
- Currency.cs
- Base64Encoder.cs
- ToolCreatedEventArgs.cs
- PrinterResolution.cs
- XmlEntityReference.cs
- WebPartEventArgs.cs
- DataStreamFromComStream.cs
- LazyTextWriterCreator.cs
- ImageListImage.cs
- RolePrincipal.cs
- RoleGroupCollection.cs
- ComplexPropertyEntry.cs
- SafeHandles.cs
- ProfileSettingsCollection.cs
- Light.cs
- MetadataArtifactLoaderFile.cs
- XmlDictionaryReaderQuotas.cs
- TransformedBitmap.cs
- KeyValuePairs.cs
- TransportConfigurationTypeElement.cs
- TextRunCacheImp.cs
- XmlAttributeCollection.cs
- ValueQuery.cs
- XmlSchemaValidationException.cs
- SecurityElement.cs
- ReliableDuplexSessionChannel.cs
- SplitContainer.cs
- NativeMethods.cs
- TerminateDesigner.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WebConfigurationManager.cs
- ContainerControl.cs
- UnsafeNativeMethods.cs
- MethodBuilder.cs
- PeerNodeTraceRecord.cs
- Symbol.cs
- MethodImplAttribute.cs
- BigInt.cs
- ExtenderProvidedPropertyAttribute.cs
- login.cs
- StorageConditionPropertyMapping.cs
- CqlLexerHelpers.cs
- TransformerConfigurationWizardBase.cs
- CharKeyFrameCollection.cs
- UriWriter.cs
- ApplicationManager.cs
- MetabaseServerConfig.cs
- ProviderConnectionPointCollection.cs
- OrthographicCamera.cs
- PermissionRequestEvidence.cs
- DefaultAsyncDataDispatcher.cs
- WebPartZoneAutoFormat.cs
- Roles.cs
- PersonalizationProviderCollection.cs
- MasterPageParser.cs
- DataGridColumnCollection.cs
- HiddenFieldPageStatePersister.cs
- DoubleAnimationClockResource.cs
- DoubleLinkList.cs
- HttpPostProtocolReflector.cs
- ConnectionProviderAttribute.cs
- Attributes.cs
- PrimarySelectionGlyph.cs
- CqlGenerator.cs
- ResourceProperty.cs
- WaitHandleCannotBeOpenedException.cs
- TreeNodeBindingDepthConverter.cs
- UTF8Encoding.cs
- Preprocessor.cs
- TypedRowHandler.cs
- SqlCommandBuilder.cs
- XmlDocumentFieldSchema.cs
- DbException.cs
- TransactionOptions.cs
- TypeExtension.cs
- Rect3DValueSerializer.cs
- HtmlWindow.cs
- ExtractedStateEntry.cs
- DataGridToolTip.cs
- WindowsFormsHelpers.cs
- AdRotator.cs
- EventSource.cs
- TypeViewSchema.cs
- HwndTarget.cs
- UnicastIPAddressInformationCollection.cs
- SignatureTargetIdManager.cs
- TextElementEnumerator.cs
- CancelEventArgs.cs
- PathGradientBrush.cs
- DataMember.cs