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
- DataExpression.cs
- InternalResources.cs
- HtmlButton.cs
- MimeMultiPart.cs
- ExtensionWindowResizeGrip.cs
- CommentGlyph.cs
- Int64AnimationBase.cs
- ManagementNamedValueCollection.cs
- Label.cs
- Stackframe.cs
- TimeStampChecker.cs
- XmlSchemaComplexContentRestriction.cs
- AllowedAudienceUriElement.cs
- TextSimpleMarkerProperties.cs
- InvalidComObjectException.cs
- Parsers.cs
- DesignerExtenders.cs
- DataGridViewRowStateChangedEventArgs.cs
- BamlLocalizabilityResolver.cs
- CodeDomConfigurationHandler.cs
- VisualStates.cs
- PngBitmapDecoder.cs
- DragDeltaEventArgs.cs
- AttributeEmitter.cs
- StrokeCollection.cs
- BypassElement.cs
- TreeNodeBindingCollection.cs
- AutomationInteropProvider.cs
- XmlSiteMapProvider.cs
- ComIntegrationManifestGenerator.cs
- ResourceDescriptionAttribute.cs
- Bits.cs
- RadioButtonStandardAdapter.cs
- EndpointIdentityExtension.cs
- XmlReflectionImporter.cs
- ModuleBuilderData.cs
- CheckBoxList.cs
- TrustManagerPromptUI.cs
- LinkLabel.cs
- RuntimeEnvironment.cs
- DeflateStream.cs
- KnownTypeHelper.cs
- SqlMultiplexer.cs
- Emitter.cs
- ColorMap.cs
- UnsupportedPolicyOptionsException.cs
- Translator.cs
- NamespaceCollection.cs
- WebBaseEventKeyComparer.cs
- DesignerVerbToolStripMenuItem.cs
- SecureEnvironment.cs
- ManagedWndProcTracker.cs
- DebugTrace.cs
- FamilyTypeface.cs
- Certificate.cs
- PriorityBinding.cs
- InternalCache.cs
- InputDevice.cs
- ThreadPool.cs
- ProcessProtocolHandler.cs
- EventLogEntryCollection.cs
- webbrowsersite.cs
- TraceHwndHost.cs
- ConfigurationStrings.cs
- OdbcReferenceCollection.cs
- SqlUserDefinedTypeAttribute.cs
- XmlBinaryReader.cs
- XmlBinaryReader.cs
- TextUtf8RawTextWriter.cs
- UpDownBaseDesigner.cs
- FactorySettingsElement.cs
- ListCommandEventArgs.cs
- WebDisplayNameAttribute.cs
- EntityDataReader.cs
- DateTimeSerializationSection.cs
- PointAnimationUsingKeyFrames.cs
- SubMenuStyle.cs
- XmlTypeMapping.cs
- XmlByteStreamReader.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DelayLoadType.cs
- BitmapEncoder.cs
- Separator.cs
- InstanceLockLostException.cs
- XamlTreeBuilder.cs
- Enum.cs
- DataGridItemCollection.cs
- RootDesignerSerializerAttribute.cs
- TypeExtensionSerializer.cs
- XmlSerializerAssemblyAttribute.cs
- XmlObjectSerializerReadContextComplexJson.cs
- FixUp.cs
- PropertyPushdownHelper.cs
- PersistChildrenAttribute.cs
- SHA384CryptoServiceProvider.cs
- LookupBindingPropertiesAttribute.cs
- HttpListener.cs
- LinkUtilities.cs
- WeakReferenceList.cs
- RequestCacheValidator.cs