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
- CapabilitiesSection.cs
- OleDbConnectionFactory.cs
- SocketElement.cs
- DataPagerField.cs
- StatusBarDrawItemEvent.cs
- Comparer.cs
- StyleBamlRecordReader.cs
- ResolveNameEventArgs.cs
- QueryOperationResponseOfT.cs
- ComplexLine.cs
- CultureMapper.cs
- ResourceReader.cs
- DesignerCategoryAttribute.cs
- FontCacheLogic.cs
- HotSpot.cs
- InfoCardArgumentException.cs
- SlipBehavior.cs
- XXXOnTypeBuilderInstantiation.cs
- DataRowComparer.cs
- WebPart.cs
- SafeTimerHandle.cs
- AttributeCollection.cs
- RayHitTestParameters.cs
- OleCmdHelper.cs
- HelpInfo.cs
- InheritanceContextHelper.cs
- SequenceNumber.cs
- StorageAssociationTypeMapping.cs
- CellCreator.cs
- ResourceManager.cs
- CompositeFontParser.cs
- Pool.cs
- HitTestWithPointDrawingContextWalker.cs
- BlurEffect.cs
- GridViewSelectEventArgs.cs
- ChangeBlockUndoRecord.cs
- DataBoundControlParameterTarget.cs
- PackagePart.cs
- DeleteCardRequest.cs
- HandlerBase.cs
- SHA1Managed.cs
- ConsoleKeyInfo.cs
- ELinqQueryState.cs
- Transform3DGroup.cs
- ListParagraph.cs
- AppDomain.cs
- XmlEncoding.cs
- OdbcConnectionPoolProviderInfo.cs
- FlowLayoutPanelDesigner.cs
- DataServiceKeyAttribute.cs
- PieceDirectory.cs
- _CookieModule.cs
- SystemMulticastIPAddressInformation.cs
- AnnotationResource.cs
- BlobPersonalizationState.cs
- WebControlParameterProxy.cs
- AsnEncodedData.cs
- CaseExpr.cs
- X509Utils.cs
- QilList.cs
- HelpInfo.cs
- EntityExpressionVisitor.cs
- ImageFormatConverter.cs
- AsyncOperationManager.cs
- ThreadAttributes.cs
- DispatcherExceptionEventArgs.cs
- JsonEncodingStreamWrapper.cs
- DetailsViewDesigner.cs
- HandlerFactoryWrapper.cs
- DesignerSerializationVisibilityAttribute.cs
- CheckBox.cs
- Rule.cs
- WindowsListViewItemStartMenu.cs
- SimpleRecyclingCache.cs
- DataGridViewCellEventArgs.cs
- Attributes.cs
- ZoneIdentityPermission.cs
- PolicyException.cs
- ExternalException.cs
- CryptoApi.cs
- HashSetDebugView.cs
- ObjectNotFoundException.cs
- Grid.cs
- CheckBoxField.cs
- XmlSerializableReader.cs
- PersistenceException.cs
- NamespaceTable.cs
- ObjectPersistData.cs
- ResolvedKeyFrameEntry.cs
- GestureRecognitionResult.cs
- Wildcard.cs
- MemoryFailPoint.cs
- RenderDataDrawingContext.cs
- TimeZone.cs
- MenuItem.cs
- HyperLinkDesigner.cs
- AuthStoreRoleProvider.cs
- ApplicationId.cs
- SystemInfo.cs
- VisualStateManager.cs