Code:
/ DotNET / DotNET / 8.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
- SystemThemeKey.cs
- ChannelBase.cs
- StylusPointProperties.cs
- XmlSchemaAppInfo.cs
- CompositeScriptReference.cs
- ChangeNode.cs
- ReadOnlyNameValueCollection.cs
- ArrayExtension.cs
- InputLangChangeEvent.cs
- ListBindingConverter.cs
- PrinterUnitConvert.cs
- CodePageEncoding.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ImageDrawing.cs
- XmlDocumentType.cs
- MetadataHelper.cs
- ConfigXmlSignificantWhitespace.cs
- ListMarkerSourceInfo.cs
- BitmapEffectGroup.cs
- FigureHelper.cs
- FreeFormDragDropManager.cs
- SQLInt16.cs
- AVElementHelper.cs
- HttpPostServerProtocol.cs
- Switch.cs
- DoubleLink.cs
- BasicCellRelation.cs
- FixedLineResult.cs
- SchemaTypeEmitter.cs
- AttributeSetAction.cs
- XmlBinaryWriterSession.cs
- BufferedWebEventProvider.cs
- CustomErrorsSection.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlColumnizer.cs
- TableLayoutStyleCollection.cs
- DataStorage.cs
- CannotUnloadAppDomainException.cs
- XmlElement.cs
- TrustManagerMoreInformation.cs
- DataSourceHelper.cs
- UnsafeNativeMethods.cs
- SqlConnectionString.cs
- SchemaImporterExtensionsSection.cs
- RightsManagementEncryptionTransform.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FixedSOMTable.cs
- TiffBitmapDecoder.cs
- EventSourceCreationData.cs
- CollectionContainer.cs
- DiagnosticTrace.cs
- ResourceReferenceKeyNotFoundException.cs
- ExpandableObjectConverter.cs
- StatusBarAutomationPeer.cs
- DataRecordObjectView.cs
- X509Certificate2.cs
- WsdlInspector.cs
- SharedConnectionInfo.cs
- DataSourceControlBuilder.cs
- FigureHelper.cs
- WebPartEditorOkVerb.cs
- ObjectSet.cs
- IdentityModelDictionary.cs
- TrustLevel.cs
- ResourceReferenceExpressionConverter.cs
- Slider.cs
- DbConnectionFactory.cs
- WindowsIdentity.cs
- DesignerImageAdapter.cs
- FloaterBaseParagraph.cs
- FrameworkTextComposition.cs
- _CommandStream.cs
- AppDomainUnloadedException.cs
- ModuleConfigurationInfo.cs
- SequenceFullException.cs
- WebServiceMethodData.cs
- ButtonColumn.cs
- DBNull.cs
- OdbcConnectionString.cs
- InputElement.cs
- SystemSounds.cs
- ProfileSettings.cs
- Merger.cs
- HttpProfileBase.cs
- ExternalCalls.cs
- RoutedEvent.cs
- SpeechRecognizer.cs
- safex509handles.cs
- PrimitiveType.cs
- _IPv6Address.cs
- MarkerProperties.cs
- HwndKeyboardInputProvider.cs
- XmlSchemaAttributeGroup.cs
- GroupDescription.cs
- IncrementalReadDecoders.cs
- BufferedGraphicsContext.cs
- ViewBox.cs
- ResourceBinder.cs
- CultureInfoConverter.cs
- WeakHashtable.cs