Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartZoneCollection.cs
- ClientTarget.cs
- GridItemProviderWrapper.cs
- Function.cs
- BooleanAnimationBase.cs
- DocumentScope.cs
- ExpressionNode.cs
- SmiEventStream.cs
- IIS7WorkerRequest.cs
- TemplateBindingExtension.cs
- IItemContainerGenerator.cs
- ScrollViewer.cs
- SortableBindingList.cs
- RegexMatch.cs
- DocumentViewerAutomationPeer.cs
- StreamResourceInfo.cs
- HwndMouseInputProvider.cs
- DesignObjectWrapper.cs
- FormViewDesigner.cs
- FontDialog.cs
- IndexObject.cs
- BufferedGraphicsContext.cs
- SessionEndingEventArgs.cs
- TraceFilter.cs
- DataGridViewSelectedCellCollection.cs
- StackSpiller.Temps.cs
- XLinq.cs
- LogEntryHeaderDeserializer.cs
- SmtpMail.cs
- RawStylusInput.cs
- InteropDesigner.xaml.cs
- ObjectDataSourceMethodEventArgs.cs
- InkCanvasSelection.cs
- CodeCompileUnit.cs
- XmlDocumentSerializer.cs
- GridPattern.cs
- NativeMethods.cs
- LinkDescriptor.cs
- DbParameterCollectionHelper.cs
- ScriptManager.cs
- WriteableOnDemandStream.cs
- BulletedList.cs
- DefaultAssemblyResolver.cs
- Wildcard.cs
- ZipIOFileItemStream.cs
- CellPartitioner.cs
- StructuredProperty.cs
- ReadWriteObjectLock.cs
- LayoutUtils.cs
- StringDictionary.cs
- SiteMapPath.cs
- DtrList.cs
- SchemaNamespaceManager.cs
- DecimalAnimationUsingKeyFrames.cs
- NativeMethods.cs
- CatalogZoneBase.cs
- Rect3D.cs
- XsltFunctions.cs
- HttpApplicationFactory.cs
- CreateUserErrorEventArgs.cs
- InvalidDataException.cs
- WorkflowMarkupSerializationException.cs
- WindowsImpersonationContext.cs
- BuildProvider.cs
- SqlTypesSchemaImporter.cs
- CngAlgorithmGroup.cs
- SqlMethodTransformer.cs
- ConfigurationProviderException.cs
- TableAdapterManagerGenerator.cs
- PackageRelationshipCollection.cs
- VirtualPathProvider.cs
- COM2FontConverter.cs
- SoapFormatter.cs
- XD.cs
- ApplicationCommands.cs
- NavigatorInput.cs
- CssClassPropertyAttribute.cs
- AttributeExtensions.cs
- externdll.cs
- PersistChildrenAttribute.cs
- XmlValidatingReader.cs
- SafeNativeMethods.cs
- BitmapPalettes.cs
- StackBuilderSink.cs
- FragmentQuery.cs
- HttpGetClientProtocol.cs
- XmlNavigatorFilter.cs
- CloseSequence.cs
- iisPickupDirectory.cs
- ScriptRegistrationManager.cs
- CachedBitmap.cs
- UrlMappingsSection.cs
- ConfigurationSectionCollection.cs
- EmptyStringExpandableObjectConverter.cs
- Behavior.cs
- BaseDataBoundControl.cs
- ToolStripRenderer.cs
- BindingExpression.cs
- returneventsaver.cs
- ClientBuildManagerCallback.cs