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
- Vector3D.cs
- CodeTypeParameterCollection.cs
- HttpFileCollectionBase.cs
- ApplicationProxyInternal.cs
- StandardCommands.cs
- Win32SafeHandles.cs
- ProtectedProviderSettings.cs
- FlowchartDesignerCommands.cs
- UserControlFileEditor.cs
- RoutedUICommand.cs
- RtfControls.cs
- ChannelTerminatedException.cs
- InternalPermissions.cs
- DataTableReaderListener.cs
- OneToOneMappingSerializer.cs
- EmptyControlCollection.cs
- PeerResolverBindingElement.cs
- SimpleApplicationHost.cs
- SocketElement.cs
- HelpOperationInvoker.cs
- TemplateAction.cs
- LineGeometry.cs
- TaskHelper.cs
- UndoUnit.cs
- DiagnosticTraceSource.cs
- Assembly.cs
- FilterableAttribute.cs
- SchemaImporterExtension.cs
- IdentityValidationException.cs
- ForeignKeyFactory.cs
- ComponentCollection.cs
- RegexCompiler.cs
- TextEditorSelection.cs
- ServiceEndpointElement.cs
- BaseTypeViewSchema.cs
- DataGridTextBox.cs
- wgx_sdk_version.cs
- ProjectionCamera.cs
- TextReader.cs
- unitconverter.cs
- SystemTcpStatistics.cs
- WindowInteractionStateTracker.cs
- ActionNotSupportedException.cs
- SessionIDManager.cs
- SessionEndingEventArgs.cs
- SignatureToken.cs
- FolderBrowserDialog.cs
- ProcessRequestAsyncResult.cs
- TriggerActionCollection.cs
- AdRotatorDesigner.cs
- WebPartCloseVerb.cs
- LogicalExpr.cs
- EllipseGeometry.cs
- DocobjHost.cs
- ProcessHostServerConfig.cs
- InheritanceContextHelper.cs
- SuspendDesigner.cs
- DesignerTextBoxAdapter.cs
- HttpResponseWrapper.cs
- Exceptions.cs
- FixedBufferAttribute.cs
- UserNameSecurityToken.cs
- BitmapEffectInput.cs
- ReferenceSchema.cs
- GreenMethods.cs
- XmlCodeExporter.cs
- SqlDataSourceView.cs
- Point3DCollection.cs
- Calendar.cs
- ConfigurationValidatorAttribute.cs
- HtmlForm.cs
- Int32Collection.cs
- RowBinding.cs
- NativeMethods.cs
- UserControlAutomationPeer.cs
- EventLogPermission.cs
- CompilerLocalReference.cs
- FamilyMapCollection.cs
- StreamInfo.cs
- LazyTextWriterCreator.cs
- X509Chain.cs
- Activator.cs
- TextBoxAutoCompleteSourceConverter.cs
- AudioFormatConverter.cs
- ColumnTypeConverter.cs
- PersonalizationEntry.cs
- TreeNodeStyleCollection.cs
- FileLevelControlBuilderAttribute.cs
- TimeSpanStorage.cs
- QilFactory.cs
- IndentTextWriter.cs
- SessionEndingEventArgs.cs
- GridViewRow.cs
- MouseCaptureWithinProperty.cs
- InstanceStore.cs
- XamlInt32CollectionSerializer.cs
- WindowsListViewItem.cs
- PrimitiveSchema.cs
- DbConnectionClosed.cs
- GB18030Encoding.cs