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
- BeginEvent.cs
- UniqueIdentifierService.cs
- WindowsBrush.cs
- Translator.cs
- MessageSmuggler.cs
- ExecutedRoutedEventArgs.cs
- TextMarkerSource.cs
- CodePropertyReferenceExpression.cs
- ResourceCategoryAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- InvalidFilterCriteriaException.cs
- Int16AnimationBase.cs
- ContainerParagraph.cs
- basecomparevalidator.cs
- ExeConfigurationFileMap.cs
- MatrixCamera.cs
- DataGridItem.cs
- LinkClickEvent.cs
- SrgsOneOf.cs
- NTAccount.cs
- WebPartConnectionCollection.cs
- COM2FontConverter.cs
- DummyDataSource.cs
- SqlFacetAttribute.cs
- Keyboard.cs
- TextInfo.cs
- WebFormsRootDesigner.cs
- GACIdentityPermission.cs
- KnowledgeBase.cs
- TemplateBindingExtensionConverter.cs
- PartialArray.cs
- XmlSchema.cs
- RuntimeCompatibilityAttribute.cs
- MSAANativeProvider.cs
- NativeWindow.cs
- GridEntry.cs
- ConvertEvent.cs
- StringInfo.cs
- AssociationSetEnd.cs
- DefaultBinder.cs
- XmlArrayItemAttributes.cs
- XPathNodePointer.cs
- FixUp.cs
- WorkflowMarkupElementEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- SimpleTypeResolver.cs
- TrackingServices.cs
- ResourcePool.cs
- LinkClickEvent.cs
- DragSelectionMessageFilter.cs
- SystemIcmpV4Statistics.cs
- webclient.cs
- DbgUtil.cs
- OrderingExpression.cs
- SystemWebSectionGroup.cs
- ExecutionEngineException.cs
- HtmlForm.cs
- IntegerFacetDescriptionElement.cs
- ErrorFormatter.cs
- ExternalException.cs
- WindowsButton.cs
- Rect.cs
- ToolStripTextBox.cs
- InfoCardMasterKey.cs
- ParameterCollection.cs
- ACL.cs
- FontEditor.cs
- DnsPermission.cs
- OleServicesContext.cs
- XmlArrayItemAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- GradientBrush.cs
- DataGridViewRowPrePaintEventArgs.cs
- CompositeScriptReferenceEventArgs.cs
- ConsumerConnectionPoint.cs
- AnnotationAdorner.cs
- ElementHost.cs
- AuthenticationModuleElementCollection.cs
- TypeExtensionSerializer.cs
- ExternalException.cs
- XmlWrappingReader.cs
- Utils.cs
- IQueryable.cs
- SamlSubject.cs
- ToolBarDesigner.cs
- AppDomainAttributes.cs
- WebControlsSection.cs
- MobileTemplatedControlDesigner.cs
- WebPart.cs
- DbConnectionHelper.cs
- GridViewRowCollection.cs
- CompositeCollection.cs
- KeyInterop.cs
- XmlDataFileEditor.cs
- Base64Decoder.cs
- BinHexDecoder.cs
- PriorityRange.cs
- Cell.cs
- CompilerTypeWithParams.cs
- DefaultBinder.cs