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
- ScriptBehaviorDescriptor.cs
- SystemIcons.cs
- ClientSideQueueItem.cs
- TextEffectCollection.cs
- OracleBinary.cs
- ChangePasswordAutoFormat.cs
- metadatamappinghashervisitor.cs
- CookieParameter.cs
- UnicodeEncoding.cs
- TypeExtensionSerializer.cs
- LoopExpression.cs
- TraceInternal.cs
- WebBrowserUriTypeConverter.cs
- mda.cs
- MiniModule.cs
- sortedlist.cs
- BufferedStream.cs
- LongCountAggregationOperator.cs
- RequestBringIntoViewEventArgs.cs
- FormDocumentDesigner.cs
- RuleAction.cs
- TraceFilter.cs
- OverlappedAsyncResult.cs
- WinFormsComponentEditor.cs
- OdbcHandle.cs
- XmlLoader.cs
- XmlAttributeCache.cs
- QilLoop.cs
- RectangleF.cs
- FreezableOperations.cs
- PinnedBufferMemoryStream.cs
- RSACryptoServiceProvider.cs
- BitmapDownload.cs
- PropertyPath.cs
- _ListenerResponseStream.cs
- Typeface.cs
- MULTI_QI.cs
- TriState.cs
- SafeCryptoHandles.cs
- SafePointer.cs
- SqlInternalConnectionSmi.cs
- DrawingAttributesDefaultValueFactory.cs
- CollectionViewGroupInternal.cs
- SystemIcmpV4Statistics.cs
- SizeKeyFrameCollection.cs
- DataView.cs
- HashAlgorithm.cs
- AssemblyBuilder.cs
- StorageComplexPropertyMapping.cs
- ConfigurationPermission.cs
- Type.cs
- RMEnrollmentPage1.cs
- DetailsViewInsertEventArgs.cs
- EditingCommands.cs
- StringHelper.cs
- TypeSemantics.cs
- TimerTable.cs
- DecryptedHeader.cs
- Menu.cs
- AttributeSetAction.cs
- PriorityItem.cs
- EmptyEnumerator.cs
- SHA384Managed.cs
- HtmlTitle.cs
- StyleSelector.cs
- XmlIgnoreAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- AttributeCollection.cs
- HttpModuleActionCollection.cs
- XmlDataSourceView.cs
- ToolZone.cs
- ProfileProvider.cs
- AsmxEndpointPickerExtension.cs
- EncryptedPackage.cs
- XmlDictionaryReader.cs
- StructuredProperty.cs
- ContentDisposition.cs
- Page.cs
- GetIndexBinder.cs
- WindowsFormsSectionHandler.cs
- RowCache.cs
- TemplateControlBuildProvider.cs
- EntityDataSourceWrapper.cs
- DetailsViewRow.cs
- ADConnectionHelper.cs
- EnterpriseServicesHelper.cs
- UtilityExtension.cs
- XmlDocumentFieldSchema.cs
- ImageKeyConverter.cs
- WebPartEditorOkVerb.cs
- HybridDictionary.cs
- ProgressBarRenderer.cs
- DateBoldEvent.cs
- OleDbStruct.cs
- ExpandCollapsePattern.cs
- DetailsViewUpdatedEventArgs.cs
- DesignerActionPropertyItem.cs
- KeyPressEvent.cs
- IsolatedStorage.cs
- XmlTypeMapping.cs