Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GridItemCollection.cs
- dsa.cs
- AlphabeticalEnumConverter.cs
- ToolboxItem.cs
- ObservableCollection.cs
- DocumentViewerHelper.cs
- AgileSafeNativeMemoryHandle.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- FrameworkElement.cs
- XPathNodeIterator.cs
- DataTableReaderListener.cs
- CreateUserWizard.cs
- PropertyDescriptorComparer.cs
- DocumentGridContextMenu.cs
- PbrsForward.cs
- WindowsListViewItemStartMenu.cs
- MemberCollection.cs
- Size.cs
- FontDriver.cs
- LineSegment.cs
- UInt16.cs
- CountdownEvent.cs
- ImportContext.cs
- TreeView.cs
- UInt32Converter.cs
- ToolStripOverflow.cs
- HtmlAnchor.cs
- VariableQuery.cs
- NameValuePermission.cs
- initElementDictionary.cs
- SHA1.cs
- FileUpload.cs
- FolderBrowserDialog.cs
- TrustManager.cs
- ProjectionPlan.cs
- SendParametersContent.cs
- Vector3dCollection.cs
- DataContractSerializerOperationGenerator.cs
- RelatedEnd.cs
- StringExpressionSet.cs
- SyntaxCheck.cs
- RowType.cs
- KeyNotFoundException.cs
- Filter.cs
- SqlHelper.cs
- WindowsTab.cs
- Style.cs
- HttpApplicationStateBase.cs
- SchemaTypeEmitter.cs
- SystemIPInterfaceProperties.cs
- WebResourceAttribute.cs
- TakeQueryOptionExpression.cs
- XslAst.cs
- DescendantQuery.cs
- XmlWhitespace.cs
- NumericUpDownAccelerationCollection.cs
- NameObjectCollectionBase.cs
- DataServiceExpressionVisitor.cs
- UDPClient.cs
- CompositeFontFamily.cs
- DocumentReference.cs
- SubclassTypeValidatorAttribute.cs
- PathTooLongException.cs
- Screen.cs
- ThaiBuddhistCalendar.cs
- ArcSegment.cs
- BuildProvider.cs
- ExpressionEditorAttribute.cs
- CompiledXpathExpr.cs
- InvokeAction.cs
- JavascriptXmlWriterWrapper.cs
- ProfilePropertyNameValidator.cs
- RegexCharClass.cs
- UshortList2.cs
- SmiGettersStream.cs
- ToolStripCodeDomSerializer.cs
- ApplicationException.cs
- EntityConnectionStringBuilder.cs
- DbMetaDataColumnNames.cs
- WebScriptServiceHostFactory.cs
- TextShapeableCharacters.cs
- DynamicPropertyHolder.cs
- documentation.cs
- HtmlControl.cs
- TrustManagerMoreInformation.cs
- ActiveXSite.cs
- ResourceProperty.cs
- DataBinding.cs
- ErrorStyle.cs
- TextTreePropertyUndoUnit.cs
- SqlCommandSet.cs
- KnownBoxes.cs
- TableLayoutStyle.cs
- HttpListenerTimeoutManager.cs
- ArgumentException.cs
- DeclarativeCatalogPart.cs
- RequestCacheValidator.cs
- CodeAssignStatement.cs
- RegexGroup.cs
- Focus.cs