Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // 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; 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; } } } } // 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
- CellPartitioner.cs
- ManualResetEvent.cs
- RangeExpression.cs
- MessageFault.cs
- AddressHeader.cs
- ScriptControlManager.cs
- PathStreamGeometryContext.cs
- SpecularMaterial.cs
- SafeCertificateContext.cs
- TextSearch.cs
- LayoutSettings.cs
- BitStream.cs
- Section.cs
- SponsorHelper.cs
- FloatUtil.cs
- MediaPlayerState.cs
- CallTemplateAction.cs
- SID.cs
- HttpConfigurationContext.cs
- FormViewRow.cs
- RequestResponse.cs
- FormatConvertedBitmap.cs
- ISSmlParser.cs
- CompositeCollection.cs
- InternalBufferOverflowException.cs
- ViewCellSlot.cs
- Exception.cs
- XmlSchemaAttributeGroupRef.cs
- IDReferencePropertyAttribute.cs
- DataListAutoFormat.cs
- CodeSnippetExpression.cs
- invalidudtexception.cs
- WebRequestModuleElement.cs
- EventlogProvider.cs
- XmlSchemaAttributeGroupRef.cs
- ControlAdapter.cs
- EnvelopedSignatureTransform.cs
- PersonalizationDictionary.cs
- WeakRefEnumerator.cs
- ObservableCollection.cs
- BaseTemplateParser.cs
- PeerToPeerException.cs
- RuleDefinitions.cs
- SafeRightsManagementPubHandle.cs
- SessionStateUtil.cs
- WaveHeader.cs
- ToolStripStatusLabel.cs
- DoubleKeyFrameCollection.cs
- FlowDocumentReader.cs
- DesignTimeValidationFeature.cs
- EndpointReference.cs
- AccessedThroughPropertyAttribute.cs
- recordstate.cs
- WaitForChangedResult.cs
- ConfigXmlElement.cs
- LayoutDump.cs
- AutomationPatternInfo.cs
- TemplateInstanceAttribute.cs
- ViewUtilities.cs
- TextEvent.cs
- ValidateNames.cs
- SchemaDeclBase.cs
- ConfigurationLockCollection.cs
- ISessionStateStore.cs
- XmlWriterSettings.cs
- RepeaterDataBoundAdapter.cs
- SQLMoney.cs
- HttpCookiesSection.cs
- CombinedHttpChannel.cs
- IndentTextWriter.cs
- ForEachAction.cs
- XmlSerializationGeneratedCode.cs
- JsonWriter.cs
- UInt64Converter.cs
- PageFunction.cs
- TypeFieldSchema.cs
- CustomError.cs
- XPathAncestorQuery.cs
- Rotation3DAnimationBase.cs
- SocketException.cs
- FolderLevelBuildProvider.cs
- RTLAwareMessageBox.cs
- StateManagedCollection.cs
- SoapExtensionTypeElementCollection.cs
- EmptyElement.cs
- XmlnsDictionary.cs
- LongSumAggregationOperator.cs
- PageOutputColor.cs
- EntityDataSourceQueryBuilder.cs
- ImageCollectionCodeDomSerializer.cs
- TrackingQuery.cs
- LogicalChannelCollection.cs
- Win32.cs
- ObjectDataProvider.cs
- AssemblyAttributesGoHere.cs
- BinaryConverter.cs
- GcSettings.cs
- DrawToolTipEventArgs.cs
- FtpRequestCacheValidator.cs
- ObjectSecurity.cs