Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / SqlDataSourceStatusEventArgs.cs / 1 / 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; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. //------------------------------------------------------------------------------ //// 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; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlValueConverter.cs
- ReadOnlyPropertyMetadata.cs
- PriorityBindingExpression.cs
- DbBuffer.cs
- InternalConfigConfigurationFactory.cs
- ConnectionModeReader.cs
- PropertyEmitter.cs
- Thickness.cs
- OleDbDataReader.cs
- MSHTMLHostUtil.cs
- SizeChangedEventArgs.cs
- TemplateBaseAction.cs
- PrinterUnitConvert.cs
- SoapAttributeAttribute.cs
- TabControl.cs
- MatchingStyle.cs
- VectorValueSerializer.cs
- TraceSource.cs
- RectangleGeometry.cs
- OuterGlowBitmapEffect.cs
- CipherData.cs
- CqlErrorHelper.cs
- DoubleLinkList.cs
- HostedTransportConfigurationBase.cs
- FrameDimension.cs
- SqlDataReaderSmi.cs
- NonBatchDirectoryCompiler.cs
- RegexCharClass.cs
- SetIndexBinder.cs
- XmlTextReaderImplHelpers.cs
- ParameterElement.cs
- SQlBooleanStorage.cs
- MD5CryptoServiceProvider.cs
- RecognitionEventArgs.cs
- GetWorkflowTree.cs
- MimeWriter.cs
- PathGeometry.cs
- graph.cs
- QuotaExceededException.cs
- Keywords.cs
- storepermission.cs
- SvcMapFileSerializer.cs
- ResolvedKeyFrameEntry.cs
- _AutoWebProxyScriptWrapper.cs
- BamlRecordHelper.cs
- ListBoxItemAutomationPeer.cs
- MultiView.cs
- QilParameter.cs
- XLinq.cs
- RijndaelManagedTransform.cs
- FormatterServices.cs
- UnsafeNativeMethods.cs
- DynamicRenderer.cs
- SmtpLoginAuthenticationModule.cs
- EasingQuaternionKeyFrame.cs
- DataGridViewAdvancedBorderStyle.cs
- Serializer.cs
- OutputCacheProfileCollection.cs
- MultiBindingExpression.cs
- CellParaClient.cs
- CellRelation.cs
- WebPageTraceListener.cs
- AdvancedBindingPropertyDescriptor.cs
- QilPatternFactory.cs
- Mutex.cs
- IPEndPoint.cs
- ListSourceHelper.cs
- ColorMatrix.cs
- VersionPair.cs
- SqlFacetAttribute.cs
- IncrementalHitTester.cs
- DbConnectionPoolOptions.cs
- DocobjHost.cs
- MaskedTextProvider.cs
- RequestCachePolicyConverter.cs
- DefaultCommandConverter.cs
- ImpersonationContext.cs
- ComplexTypeEmitter.cs
- TextParagraph.cs
- Helper.cs
- DataViewSetting.cs
- FormatStringEditor.cs
- DataRowView.cs
- Command.cs
- ColumnResizeUndoUnit.cs
- GlyphRunDrawing.cs
- MimeMultiPart.cs
- PropertyEmitter.cs
- MergeFailedEvent.cs
- DrawingContext.cs
- ActivityPreviewDesigner.cs
- XmlSchemaImport.cs
- ToolStripGripRenderEventArgs.cs
- RowCache.cs
- ContextBase.cs
- DBParameter.cs
- DataGridViewIntLinkedList.cs
- TypePresenter.xaml.cs
- ShaperBuffers.cs
- ListChangedEventArgs.cs