Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Transaction.cs
- QilCloneVisitor.cs
- CollectionViewGroup.cs
- glyphs.cs
- SmiMetaDataProperty.cs
- AssemblyBuilder.cs
- LayoutEditorPart.cs
- infer.cs
- BrowserCapabilitiesCompiler.cs
- MultiBindingExpression.cs
- ImageAttributes.cs
- TrackingProfileManager.cs
- MediaSystem.cs
- DataGridColumnHeaderAutomationPeer.cs
- ProviderBase.cs
- OrderedParallelQuery.cs
- AnnotationAdorner.cs
- DataGridViewColumnEventArgs.cs
- ListViewGroupConverter.cs
- ConnectionOrientedTransportManager.cs
- TokenizerHelper.cs
- ComponentChangingEvent.cs
- FastEncoderWindow.cs
- XPathAxisIterator.cs
- GatewayDefinition.cs
- Composition.cs
- mda.cs
- SafeBuffer.cs
- ProtocolImporter.cs
- HttpRuntimeSection.cs
- ReferenceEqualityComparer.cs
- UnaryNode.cs
- UTF32Encoding.cs
- Optimizer.cs
- SqlBulkCopyColumnMapping.cs
- MethodSet.cs
- DetailsViewDeleteEventArgs.cs
- Calendar.cs
- PropertyDescriptors.cs
- StreamGeometry.cs
- SessionStateModule.cs
- XmlCharCheckingWriter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- StorageEntitySetMapping.cs
- EncoderParameters.cs
- FrameworkContextData.cs
- AssemblyInfo.cs
- FunctionParameter.cs
- EventLogPermissionAttribute.cs
- AuthenticationModulesSection.cs
- RepeatInfo.cs
- SQLInt64.cs
- TextureBrush.cs
- DropSource.cs
- TextContainerHelper.cs
- ActivitiesCollection.cs
- formatter.cs
- Evidence.cs
- StylusPointProperty.cs
- AppDomainGrammarProxy.cs
- SplitContainerDesigner.cs
- UpdateException.cs
- SecurityChannelFactory.cs
- CookielessHelper.cs
- IMembershipProvider.cs
- BitmapEffectCollection.cs
- SqlDataReaderSmi.cs
- DataTableNameHandler.cs
- EntityDesignPluralizationHandler.cs
- SqlConnectionManager.cs
- StyleBamlRecordReader.cs
- TypeListConverter.cs
- FlowDocumentScrollViewer.cs
- SQLInt16Storage.cs
- SqlCharStream.cs
- ControlCachePolicy.cs
- MenuItem.cs
- XsltFunctions.cs
- RenderContext.cs
- StandardTransformFactory.cs
- NativeCppClassAttribute.cs
- HttpVersion.cs
- BasicKeyConstraint.cs
- SecurityContext.cs
- Hex.cs
- DoneReceivingAsyncResult.cs
- CollectionDataContractAttribute.cs
- CookieHandler.cs
- HostingPreferredMapPath.cs
- TypedAsyncResult.cs
- HttpRequestCacheValidator.cs
- MD5CryptoServiceProvider.cs
- PropertyDescriptor.cs
- nulltextcontainer.cs
- OperationCanceledException.cs
- PublishLicense.cs
- AsyncStreamReader.cs
- CommandField.cs
- CapabilitiesPattern.cs
- ReservationNotFoundException.cs