Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SamlSecurityTokenAuthenticator.cs
- RelationshipDetailsCollection.cs
- WindowsListViewSubItem.cs
- XmlIlVisitor.cs
- HttpDictionary.cs
- CellParaClient.cs
- CaseStatementProjectedSlot.cs
- SoapInteropTypes.cs
- BinaryConverter.cs
- Screen.cs
- ToolStripSystemRenderer.cs
- QueryHandler.cs
- ProxyAttribute.cs
- SecureStringHasher.cs
- WebAdminConfigurationHelper.cs
- XPathPatternParser.cs
- LoaderAllocator.cs
- Matrix3D.cs
- DateTimeSerializationSection.cs
- BitmapData.cs
- UriParserTemplates.cs
- HandleInitializationContext.cs
- SqlError.cs
- TemplateControlCodeDomTreeGenerator.cs
- FrameSecurityDescriptor.cs
- HelloMessage11.cs
- EmbeddedMailObject.cs
- Label.cs
- EnumerableCollectionView.cs
- StrongNameKeyPair.cs
- Gdiplus.cs
- GridViewCellAutomationPeer.cs
- InstanceCreationEditor.cs
- ForeignKeyConstraint.cs
- SAPICategories.cs
- SoapIncludeAttribute.cs
- XmlConvert.cs
- BufferedGraphicsContext.cs
- EmissiveMaterial.cs
- Activator.cs
- ArrowControl.xaml.cs
- MsmqBindingElementBase.cs
- BitmapMetadataBlob.cs
- _BufferOffsetSize.cs
- MethodInfo.cs
- ContainerParaClient.cs
- SplineKeyFrames.cs
- ObjectDataSourceStatusEventArgs.cs
- AttributeTableBuilder.cs
- ShapeTypeface.cs
- Vector3DAnimationUsingKeyFrames.cs
- SafeMemoryMappedViewHandle.cs
- XmlBufferReader.cs
- ZoomingMessageFilter.cs
- FontCollection.cs
- ProcessThreadCollection.cs
- ProtocolElementCollection.cs
- DrawingGroup.cs
- DomainUpDown.cs
- CultureInfoConverter.cs
- DataTrigger.cs
- SplashScreen.cs
- StorageAssociationTypeMapping.cs
- LocalizableAttribute.cs
- basenumberconverter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CultureMapper.cs
- RectKeyFrameCollection.cs
- EDesignUtil.cs
- Panel.cs
- SignatureResourcePool.cs
- WebPartMinimizeVerb.cs
- ListViewGroupItemCollection.cs
- NonVisualControlAttribute.cs
- XmlWhitespace.cs
- PropertyItemInternal.cs
- AsymmetricSignatureFormatter.cs
- GatewayIPAddressInformationCollection.cs
- AppDomainManager.cs
- InputQueue.cs
- ListBoxChrome.cs
- SqlDataSourceSelectingEventArgs.cs
- OracleParameterBinding.cs
- HttpResponseInternalWrapper.cs
- NamespaceMapping.cs
- XpsS0ValidatingLoader.cs
- ParseElement.cs
- OperationInfoBase.cs
- DataControlField.cs
- OleDbDataAdapter.cs
- Ops.cs
- FileVersion.cs
- SettingsPropertyCollection.cs
- NamedPipeDuplicateContext.cs
- SupportsEventValidationAttribute.cs
- HotSpot.cs
- EventTrigger.cs
- NotifyInputEventArgs.cs
- CompilationRelaxations.cs
- TreeBuilder.cs