Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1305376 / 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; 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; 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
- XmlSchemaAll.cs
- ColumnTypeConverter.cs
- ServiceBusyException.cs
- VBCodeProvider.cs
- WebControlsSection.cs
- CodeRemoveEventStatement.cs
- PathSegment.cs
- MetadataArtifactLoaderCompositeResource.cs
- KeySplineConverter.cs
- MustUnderstandSoapException.cs
- Msec.cs
- DataGrid.cs
- MultiBindingExpression.cs
- FixedSOMImage.cs
- AppDomainAttributes.cs
- FrameworkTemplate.cs
- ASCIIEncoding.cs
- DataTemplateSelector.cs
- LoginStatusDesigner.cs
- XmlExceptionHelper.cs
- DefaultIfEmptyQueryOperator.cs
- XmlAutoDetectWriter.cs
- SBCSCodePageEncoding.cs
- FontStyleConverter.cs
- InnerItemCollectionView.cs
- Model3DGroup.cs
- ExecutionEngineException.cs
- QueryTreeBuilder.cs
- GestureRecognitionResult.cs
- MergeEnumerator.cs
- NameValueCollection.cs
- GeneralTransform3DGroup.cs
- ProcessHostConfigUtils.cs
- NamedPipeHostedTransportConfiguration.cs
- SystemWebExtensionsSectionGroup.cs
- BoundColumn.cs
- ActivityDesignerLayoutSerializers.cs
- documentsequencetextcontainer.cs
- PropertyGridEditorPart.cs
- UdpChannelListener.cs
- Page.cs
- ZipPackage.cs
- assertwrapper.cs
- SymbolPair.cs
- UrlMappingsSection.cs
- ZipIOCentralDirectoryBlock.cs
- OleDragDropHandler.cs
- TransformPatternIdentifiers.cs
- TypeContext.cs
- ViewGenerator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DrawingGroup.cs
- SmtpException.cs
- TypeForwardedToAttribute.cs
- Brushes.cs
- NotifyIcon.cs
- LogRecordSequence.cs
- PrinterSettings.cs
- DBConcurrencyException.cs
- SQLInt32Storage.cs
- Msmq.cs
- BatchServiceHost.cs
- XmlSortKeyAccumulator.cs
- QuaternionConverter.cs
- StringValidator.cs
- DynamicActivityXamlReader.cs
- ConcurrencyBehavior.cs
- HttpConfigurationSystem.cs
- Trace.cs
- ResourceContainer.cs
- InlinedAggregationOperator.cs
- SerializationEventsCache.cs
- FileUtil.cs
- SizeF.cs
- GradientBrush.cs
- HostingEnvironmentException.cs
- PointAnimationUsingPath.cs
- ServiceDescriptionSerializer.cs
- SimpleTableProvider.cs
- Dictionary.cs
- PreviewPrintController.cs
- EntityParameter.cs
- ZipIOCentralDirectoryFileHeader.cs
- CompiledIdentityConstraint.cs
- ProfileManager.cs
- FamilyCollection.cs
- ConnectionsZone.cs
- KeyInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- PeerIPHelper.cs
- ExpressionBuilderContext.cs
- SplineQuaternionKeyFrame.cs
- PerformanceCounterPermissionEntry.cs
- MarshalByValueComponent.cs
- SafeSecurityHelper.cs
- CancelEventArgs.cs
- returneventsaver.cs
- DependencySource.cs
- RouteValueExpressionBuilder.cs
- ValueCollectionParameterReader.cs