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
- HttpRequestCacheValidator.cs
- XslException.cs
- ExternalFile.cs
- HtmlElementErrorEventArgs.cs
- FolderBrowserDialog.cs
- Listbox.cs
- DeclaredTypeValidator.cs
- XmlSerializerFactory.cs
- SystemException.cs
- RowSpanVector.cs
- ListBox.cs
- TransactionManager.cs
- TextFormatterImp.cs
- CSharpCodeProvider.cs
- WebOperationContext.cs
- updateconfighost.cs
- ThreadStaticAttribute.cs
- TypeLibConverter.cs
- StyleTypedPropertyAttribute.cs
- wmiprovider.cs
- SoapAttributeAttribute.cs
- OutputCacheSettings.cs
- InvokePattern.cs
- PropertyEmitter.cs
- CodeThrowExceptionStatement.cs
- TextParagraphCache.cs
- ConditionalWeakTable.cs
- CompiledQueryCacheEntry.cs
- CustomAttribute.cs
- RowUpdatingEventArgs.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- EnumMember.cs
- BindingWorker.cs
- FixedLineResult.cs
- PenContext.cs
- HitTestWithPointDrawingContextWalker.cs
- DataControlCommands.cs
- ApplicationDirectory.cs
- IndicFontClient.cs
- TrackingProfileManager.cs
- RtfToken.cs
- PropertyTab.cs
- PointLight.cs
- SymbolPair.cs
- ReaderOutput.cs
- CodeChecksumPragma.cs
- ScriptManagerProxy.cs
- BitmapEffectRenderDataResource.cs
- DataObjectEventArgs.cs
- ProfessionalColors.cs
- ProcessStartInfo.cs
- DragEvent.cs
- DesignerVerb.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Attribute.cs
- DateTimeFormatInfo.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- DataServiceConfiguration.cs
- FaultFormatter.cs
- AdapterDictionary.cs
- IdentifierService.cs
- EntityCommandCompilationException.cs
- BindingFormattingDialog.cs
- AuthenticationConfig.cs
- TreeViewImageIndexConverter.cs
- WebConfigurationHost.cs
- InvalidOperationException.cs
- TypeElement.cs
- HttpHandler.cs
- arabicshape.cs
- SystemInfo.cs
- DrawingContextWalker.cs
- SafeFileHandle.cs
- TextRunCacheImp.cs
- Ref.cs
- LogRestartAreaEnumerator.cs
- PerformanceCountersElement.cs
- FontDialog.cs
- AssemblyBuilder.cs
- Converter.cs
- CodePageUtils.cs
- TraceContext.cs
- GridViewPageEventArgs.cs
- Matrix3DStack.cs
- nulltextnavigator.cs
- SizeAnimationClockResource.cs
- WindowsScrollBar.cs
- StylusPlugInCollection.cs
- NotificationContext.cs
- WebPartConnectionsDisconnectVerb.cs
- FrameworkObject.cs
- InputEventArgs.cs
- ListCollectionView.cs
- TextContainerHelper.cs
- SQLDecimalStorage.cs
- ByteAnimationUsingKeyFrames.cs
- ButtonChrome.cs
- ProviderConnectionPoint.cs
- GlyphCache.cs
- MemberCollection.cs