Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapInitialize.cs
- ApplicationException.cs
- SessionState.cs
- ZoneButton.cs
- COM2Properties.cs
- ReadOnlyState.cs
- TableLayout.cs
- FloaterBaseParagraph.cs
- ReadOnlyNameValueCollection.cs
- ObjectViewFactory.cs
- SiteMapNodeItemEventArgs.cs
- BindingOperations.cs
- StrokeNode.cs
- XmlEntityReference.cs
- CacheChildrenQuery.cs
- ScalarConstant.cs
- TransactionWaitAsyncResult.cs
- PropertyStore.cs
- RC2.cs
- SelectionWordBreaker.cs
- ManagementObjectCollection.cs
- InstanceDescriptor.cs
- EventlogProvider.cs
- PrintingPermissionAttribute.cs
- PtsContext.cs
- Part.cs
- AddressHeaderCollectionElement.cs
- MetadataArtifactLoaderCompositeResource.cs
- WebScriptMetadataMessage.cs
- xdrvalidator.cs
- DBSqlParserColumn.cs
- DoWorkEventArgs.cs
- X509Certificate2Collection.cs
- BitmapEffect.cs
- VisualBasicDesignerHelper.cs
- DataTable.cs
- PropertyPath.cs
- ScriptingSectionGroup.cs
- Expressions.cs
- ExtensionQuery.cs
- RangeValueProviderWrapper.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ColumnBinding.cs
- ParserStreamGeometryContext.cs
- TextEndOfLine.cs
- safesecurityhelperavalon.cs
- FillErrorEventArgs.cs
- WSDualHttpSecurityMode.cs
- NativeMethods.cs
- StringPropertyBuilder.cs
- XmlQueryContext.cs
- OracleBoolean.cs
- TypeBuilder.cs
- CodeCatchClauseCollection.cs
- Point.cs
- EditorAttribute.cs
- ValueSerializerAttribute.cs
- WindowsListViewItem.cs
- SchemaImporterExtension.cs
- securitycriticaldataClass.cs
- MenuTracker.cs
- selecteditemcollection.cs
- EncryptedPackageFilter.cs
- SafeNativeMethods.cs
- _SSPISessionCache.cs
- TextInfo.cs
- PermissionSetEnumerator.cs
- RegexBoyerMoore.cs
- Version.cs
- ConnectionManagementElement.cs
- TextHintingModeValidation.cs
- ResourceExpressionBuilder.cs
- Polyline.cs
- MemberAssignment.cs
- PersistenceException.cs
- RequestCacheValidator.cs
- GridViewRowCollection.cs
- SqlRemoveConstantOrderBy.cs
- StyleSheetDesigner.cs
- SizeLimitedCache.cs
- XmlNodeComparer.cs
- MachineKeyConverter.cs
- AbstractSvcMapFileLoader.cs
- PageContent.cs
- WebPartsSection.cs
- FileUtil.cs
- Misc.cs
- Rotation3D.cs
- XmlUTF8TextWriter.cs
- autovalidator.cs
- BaseParser.cs
- MessageQueueTransaction.cs
- CommandManager.cs
- XmlArrayAttribute.cs
- GregorianCalendarHelper.cs
- URIFormatException.cs
- loginstatus.cs
- EmbeddedMailObjectsCollection.cs
- InteropEnvironment.cs
- printdlgexmarshaler.cs