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
- PageContent.cs
- CodeEventReferenceExpression.cs
- SplitterCancelEvent.cs
- DataTableClearEvent.cs
- BindUriHelper.cs
- ResourceReferenceExpression.cs
- TextEffectCollection.cs
- ObjectHandle.cs
- DependencyObject.cs
- DataGridParentRows.cs
- Context.cs
- PolicyVersion.cs
- WinEventWrap.cs
- CodeCatchClause.cs
- TrustLevel.cs
- DragDrop.cs
- ToolBar.cs
- IPHostEntry.cs
- CompilationRelaxations.cs
- BitmapFrameEncode.cs
- SystemColorTracker.cs
- PerfCounterSection.cs
- RMPublishingDialog.cs
- Update.cs
- OpacityConverter.cs
- LassoSelectionBehavior.cs
- DataGridViewCellValueEventArgs.cs
- XPathParser.cs
- TextEditorMouse.cs
- RelationalExpressions.cs
- ImageAutomationPeer.cs
- ConstructorBuilder.cs
- PreviewControlDesigner.cs
- ProfileGroupSettingsCollection.cs
- SplitterPanel.cs
- DBBindings.cs
- HandledMouseEvent.cs
- DataObjectMethodAttribute.cs
- TranslateTransform.cs
- CopyNodeSetAction.cs
- BamlTreeMap.cs
- ValidationPropertyAttribute.cs
- SByteStorage.cs
- RightsManagementEncryptedStream.cs
- EventEntry.cs
- DatasetMethodGenerator.cs
- WindowsHyperlink.cs
- FlowNode.cs
- HostVisual.cs
- TriState.cs
- MetabaseServerConfig.cs
- ReflectionTypeLoadException.cs
- InvalidComObjectException.cs
- MessageHeader.cs
- PackWebResponse.cs
- CharEnumerator.cs
- CompilerInfo.cs
- GlyphTypeface.cs
- SafeSecurityHelper.cs
- ReversePositionQuery.cs
- CLSCompliantAttribute.cs
- XmlnsCache.cs
- ConnectionConsumerAttribute.cs
- SupportsEventValidationAttribute.cs
- AQNBuilder.cs
- DataGridViewCellValueEventArgs.cs
- Compilation.cs
- SinglePageViewer.cs
- SplitterEvent.cs
- AttributeInfo.cs
- OutputCacheSection.cs
- LoginViewDesigner.cs
- objectquery_tresulttype.cs
- Config.cs
- RijndaelManaged.cs
- Page.cs
- RSACryptoServiceProvider.cs
- WhitespaceRuleReader.cs
- ExpressionVisitor.cs
- XmlDocument.cs
- CodeParameterDeclarationExpressionCollection.cs
- ProfessionalColorTable.cs
- DataConnectionHelper.cs
- Viewport3DAutomationPeer.cs
- ContactManager.cs
- TableCellCollection.cs
- GeometryGroup.cs
- LicenseManager.cs
- TranslateTransform3D.cs
- EraserBehavior.cs
- InputBinder.cs
- DateTimeConverter.cs
- TypeToken.cs
- RoleManagerEventArgs.cs
- MdImport.cs
- HttpException.cs
- RedistVersionInfo.cs
- Font.cs
- oledbmetadatacolumnnames.cs
- BuildResultCache.cs