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
- DataServiceResponse.cs
- IResourceProvider.cs
- MutexSecurity.cs
- ObjectQuery_EntitySqlExtensions.cs
- DebuggerService.cs
- DataGridViewDataErrorEventArgs.cs
- FileDialogCustomPlace.cs
- SystemFonts.cs
- EntityDataSourceChangingEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- CustomSignedXml.cs
- ListViewUpdateEventArgs.cs
- EdmEntityTypeAttribute.cs
- ControlValuePropertyAttribute.cs
- _ScatterGatherBuffers.cs
- QilName.cs
- SingleObjectCollection.cs
- SkinBuilder.cs
- RegexWorker.cs
- DataSourceNameHandler.cs
- HttpChannelHelper.cs
- ContainerParaClient.cs
- InvalidCastException.cs
- SetterBaseCollection.cs
- SelectionRangeConverter.cs
- ServiceOperationUIEditor.cs
- DataService.cs
- RoutedEventArgs.cs
- SemanticAnalyzer.cs
- TypeHelper.cs
- CompiledIdentityConstraint.cs
- XPathNodeList.cs
- SqlWriter.cs
- ObjectTypeMapping.cs
- TdsParserStateObject.cs
- StructuredProperty.cs
- PropertyMappingExceptionEventArgs.cs
- XmlNavigatorFilter.cs
- RowsCopiedEventArgs.cs
- TCPListener.cs
- Privilege.cs
- PropertiesTab.cs
- DateTimeOffset.cs
- AuthStoreRoleProvider.cs
- Identity.cs
- PkcsUtils.cs
- StringAttributeCollection.cs
- InfoCardBinaryReader.cs
- Scripts.cs
- CompatibleIComparer.cs
- HttpVersion.cs
- ScrollEvent.cs
- SynthesizerStateChangedEventArgs.cs
- ScaleTransform.cs
- EmptyEnumerator.cs
- Parameter.cs
- WinInetCache.cs
- Line.cs
- ImageSourceValueSerializer.cs
- ChannelManagerBase.cs
- PersistenceProviderElement.cs
- PkcsUtils.cs
- HttpPostProtocolImporter.cs
- SocketException.cs
- TypeContext.cs
- ContextBase.cs
- Sql8ConformanceChecker.cs
- OutgoingWebResponseContext.cs
- UdpTransportBindingElement.cs
- Oid.cs
- EntityDataSourceWrapperCollection.cs
- SafePEFileHandle.cs
- SoundPlayer.cs
- State.cs
- NetNamedPipeSecurityElement.cs
- PresentationTraceSources.cs
- SemaphoreSecurity.cs
- TextRange.cs
- QilTargetType.cs
- TcpClientCredentialType.cs
- SystemIcons.cs
- MetadataArtifactLoaderResource.cs
- Condition.cs
- NonParentingControl.cs
- RadioButtonFlatAdapter.cs
- InputElement.cs
- ThreadSafeList.cs
- EdmSchemaAttribute.cs
- SQLGuid.cs
- HexParser.cs
- RemoveFromCollection.cs
- WebCodeGenerator.cs
- SQLInt32.cs
- WaitHandle.cs
- RealizationContext.cs
- Pkcs9Attribute.cs
- ClientSettingsStore.cs
- ViewGenerator.cs
- BitmapEffectvisualstate.cs
- ComponentEditorForm.cs