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
- WebServiceFault.cs
- WorkflowInstanceAbortedRecord.cs
- TraceSection.cs
- XmlNotation.cs
- TraceListeners.cs
- BaseUriHelper.cs
- ConfigXmlText.cs
- EventRoute.cs
- DataSourceXmlSubItemAttribute.cs
- FlowLayoutSettings.cs
- TypedReference.cs
- ButtonColumn.cs
- RectangleGeometry.cs
- DataGridViewCellStyleConverter.cs
- XmlName.cs
- COM2PropertyDescriptor.cs
- ReachFixedDocumentSerializer.cs
- FrameworkElement.cs
- SystemParameters.cs
- ValidationResults.cs
- ListItemCollection.cs
- FilteredDataSetHelper.cs
- HttpServerVarsCollection.cs
- AccessDataSource.cs
- DataChangedEventManager.cs
- XmlDownloadManager.cs
- MemoryRecordBuffer.cs
- QilPatternVisitor.cs
- SoapTypeAttribute.cs
- SpellerError.cs
- ClonableStack.cs
- CompensationDesigner.cs
- TreeNodeCollection.cs
- URLMembershipCondition.cs
- SqlMetaData.cs
- TargetParameterCountException.cs
- DataRecordObjectView.cs
- GraphicsPathIterator.cs
- MappedMetaModel.cs
- ReadOnlyDataSourceView.cs
- UnhandledExceptionEventArgs.cs
- LogicalExpr.cs
- InstancePersistenceContext.cs
- RequestResizeEvent.cs
- StyleSheetRefUrlEditor.cs
- ColumnWidthChangingEvent.cs
- LinearGradientBrush.cs
- CustomPopupPlacement.cs
- TextTreeRootNode.cs
- SchemaContext.cs
- SqlVersion.cs
- PixelFormat.cs
- ProviderUtil.cs
- SolidColorBrush.cs
- DetailsViewModeEventArgs.cs
- BinaryObjectInfo.cs
- PKCS1MaskGenerationMethod.cs
- SQLByteStorage.cs
- bindurihelper.cs
- NumberSubstitution.cs
- TableLayoutCellPaintEventArgs.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Stroke2.cs
- UInt16Storage.cs
- ControlIdConverter.cs
- TrackBarRenderer.cs
- TextViewElement.cs
- ViewGenerator.cs
- InputBuffer.cs
- SettingsBase.cs
- OLEDB_Enum.cs
- ColumnHeaderConverter.cs
- KoreanLunisolarCalendar.cs
- CaseInsensitiveHashCodeProvider.cs
- SubstitutionResponseElement.cs
- WebExceptionStatus.cs
- Control.cs
- ColorContext.cs
- PersonalizationState.cs
- ObjectStateFormatter.cs
- BindingCompleteEventArgs.cs
- GradientBrush.cs
- ElementNotEnabledException.cs
- CharEntityEncoderFallback.cs
- HttpRequest.cs
- DynamicAttribute.cs
- BindValidationContext.cs
- MetadataArtifactLoaderFile.cs
- CompiledXpathExpr.cs
- QilReplaceVisitor.cs
- _UriTypeConverter.cs
- TextEditorCopyPaste.cs
- FusionWrap.cs
- TargetException.cs
- IsolatedStorageException.cs
- Wizard.cs
- SqlMethodCallConverter.cs
- ProfilePropertySettingsCollection.cs
- XPathBuilder.cs
- DesignerProperties.cs