Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompositeFontFamily.cs
- FixedSOMFixedBlock.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ThumbButtonInfoCollection.cs
- Codec.cs
- SharedHttpTransportManager.cs
- ServiceProviders.cs
- PeerPresenceInfo.cs
- InternalConfigConfigurationFactory.cs
- FieldNameLookup.cs
- SystemUdpStatistics.cs
- ExpressionVisitorHelpers.cs
- HeaderedItemsControl.cs
- SqlDataSourceStatusEventArgs.cs
- SoapAttributeOverrides.cs
- XmlSchemaAnnotated.cs
- XmlSchemaSimpleContentRestriction.cs
- CodeGenerationManager.cs
- ParserStack.cs
- SqlDataSourceStatusEventArgs.cs
- LogAppendAsyncResult.cs
- XmlCharType.cs
- OdbcConnectionFactory.cs
- _Connection.cs
- HealthMonitoringSection.cs
- SuppressIldasmAttribute.cs
- GridErrorDlg.cs
- GridToolTip.cs
- TimeoutValidationAttribute.cs
- CodeRegionDirective.cs
- PersistenceTypeAttribute.cs
- CompositeFontFamily.cs
- TagPrefixAttribute.cs
- DataGridPageChangedEventArgs.cs
- IProvider.cs
- SignedXml.cs
- DataGridBoolColumn.cs
- LinqDataSourceHelper.cs
- EntitySetBaseCollection.cs
- SaveFileDialog.cs
- RSACryptoServiceProvider.cs
- PageHandlerFactory.cs
- CompilationLock.cs
- SafePEFileHandle.cs
- ConditionalAttribute.cs
- StatusBarItem.cs
- StrokeIntersection.cs
- MetaData.cs
- CodePageUtils.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Vector3dCollection.cs
- BindingContext.cs
- _NegoStream.cs
- VersionedStreamOwner.cs
- HttpValueCollection.cs
- Base64Stream.cs
- XhtmlBasicLabelAdapter.cs
- InvalidCommandTreeException.cs
- SuspendDesigner.cs
- DoubleAnimationBase.cs
- PropertyOverridesTypeEditor.cs
- ExpressionDumper.cs
- TdsEnums.cs
- EndSelectCardRequest.cs
- Message.cs
- Normalization.cs
- StylusLogic.cs
- LogicalMethodInfo.cs
- TrackPoint.cs
- UIElementIsland.cs
- ValidationRule.cs
- OleDbInfoMessageEvent.cs
- FocusManager.cs
- EpmTargetTree.cs
- ResourceExpressionBuilder.cs
- MetadataSource.cs
- AttributeEmitter.cs
- DataTableMapping.cs
- AttachedAnnotation.cs
- NativeWindow.cs
- JsonDataContract.cs
- PixelShader.cs
- XmlSerializerAssemblyAttribute.cs
- Base64Decoder.cs
- WebPartConnectionsEventArgs.cs
- ParameterBuilder.cs
- AssemblyBuilder.cs
- DesignerTransactionCloseEvent.cs
- QuadraticEase.cs
- AuthorizationRuleCollection.cs
- ProfileServiceManager.cs
- Typography.cs
- SelectionService.cs
- SafeMarshalContext.cs
- CatalogZone.cs
- TabControl.cs
- RenderingBiasValidation.cs
- DynamicField.cs
- DropSource.cs
- DoubleAnimationBase.cs