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
- TextureBrush.cs
- TranslateTransform.cs
- TimelineClockCollection.cs
- TextElement.cs
- NotifyIcon.cs
- ListViewUpdateEventArgs.cs
- Evaluator.cs
- SingleConverter.cs
- HuffCodec.cs
- WebEvents.cs
- XamlFigureLengthSerializer.cs
- Glyph.cs
- HttpListenerContext.cs
- DiscreteKeyFrames.cs
- TextWriterTraceListener.cs
- NodeInfo.cs
- Accessible.cs
- MobileContainerDesigner.cs
- DataSourceCacheDurationConverter.cs
- ClientEventManager.cs
- DelegatedStream.cs
- RefreshInfo.cs
- WebPartConnectionsConnectVerb.cs
- DockPatternIdentifiers.cs
- EntityCollection.cs
- XmlUrlResolver.cs
- MimeMapping.cs
- ListItemViewControl.cs
- TcpTransportSecurity.cs
- BooleanConverter.cs
- ObjectPersistData.cs
- TypeSystemHelpers.cs
- WebResourceUtil.cs
- ProcessHostMapPath.cs
- ToolZone.cs
- KnownTypesProvider.cs
- OletxDependentTransaction.cs
- WebBrowser.cs
- InternalDuplexChannelFactory.cs
- BoundingRectTracker.cs
- MessageQuerySet.cs
- DropShadowBitmapEffect.cs
- AssemblyName.cs
- HttpProxyTransportBindingElement.cs
- SqlTriggerAttribute.cs
- EntityParameter.cs
- MD5.cs
- SafeEventHandle.cs
- MetafileEditor.cs
- ConfigXmlWhitespace.cs
- ResourceFallbackManager.cs
- ConfigurationStrings.cs
- AudioFileOut.cs
- ServiceInfo.cs
- Psha1DerivedKeyGeneratorHelper.cs
- HttpCachePolicy.cs
- ErrorHandler.cs
- DefaultSerializationProviderAttribute.cs
- RelOps.cs
- Pair.cs
- ComponentSerializationService.cs
- KeyConverter.cs
- RoleManagerEventArgs.cs
- NetCodeGroup.cs
- TreeNodeEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- CodeCommentStatementCollection.cs
- Base64Decoder.cs
- WindowsAuthenticationEventArgs.cs
- HMACSHA512.cs
- Attributes.cs
- CharacterBufferReference.cs
- RelationshipEndMember.cs
- DateTimeFormat.cs
- DefaultHttpHandler.cs
- VisualBasicValue.cs
- OleDbException.cs
- StringPropertyBuilder.cs
- SmtpMail.cs
- ObservableCollection.cs
- BinaryConverter.cs
- CriticalHandle.cs
- ProtocolViolationException.cs
- XmlElementList.cs
- Verify.cs
- VerticalAlignConverter.cs
- WebServicesSection.cs
- TextRangeEditTables.cs
- TdsParserHelperClasses.cs
- TableDetailsRow.cs
- ScaleTransform.cs
- Scanner.cs
- TraceContext.cs
- DecoderNLS.cs
- WebBrowsableAttribute.cs
- XPathItem.cs
- RectConverter.cs
- FontUnit.cs
- BinaryUtilClasses.cs
- CharStorage.cs