Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- NotificationContext.cs
- WindowsFormsSectionHandler.cs
- CollectionCodeDomSerializer.cs
- FieldCollectionEditor.cs
- ExtendedPropertyDescriptor.cs
- Win32.cs
- SkipQueryOptionExpression.cs
- OrderedDictionary.cs
- QuaternionRotation3D.cs
- RawStylusInputCustomDataList.cs
- DesignerDataColumn.cs
- HandlerWithFactory.cs
- ChangePassword.cs
- UserMapPath.cs
- AuthenticationManager.cs
- WebPartTransformerAttribute.cs
- DropDownButton.cs
- BinaryCommonClasses.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- DefaultMemberAttribute.cs
- ObjectStateFormatter.cs
- SQLStringStorage.cs
- Int16AnimationUsingKeyFrames.cs
- InputScope.cs
- PropertyKey.cs
- ContainerFilterService.cs
- TextProperties.cs
- ColumnBinding.cs
- Exception.cs
- ValidatedMobileControlConverter.cs
- TraceSwitch.cs
- ListCardsInFileRequest.cs
- QfeChecker.cs
- WorkflowRuntimeService.cs
- DefaultTraceListener.cs
- SocketConnection.cs
- ZipIOLocalFileBlock.cs
- MatrixTransform.cs
- Style.cs
- DecimalAnimationUsingKeyFrames.cs
- TemplateBamlRecordReader.cs
- FixedSOMSemanticBox.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HtmlTableCellCollection.cs
- TableCell.cs
- OpenTypeCommon.cs
- RoleServiceManager.cs
- ServiceReflector.cs
- CommandDevice.cs
- ToolStripSplitButton.cs
- ExclusiveTcpTransportManager.cs
- HttpListenerContext.cs
- UICuesEvent.cs
- ValidatingReaderNodeData.cs
- LeaseManager.cs
- TimelineCollection.cs
- DBDataPermissionAttribute.cs
- HScrollBar.cs
- CodePrimitiveExpression.cs
- AsyncOperation.cs
- InvalidProgramException.cs
- Bind.cs
- SqlBulkCopy.cs
- ArraySubsetEnumerator.cs
- Polygon.cs
- Switch.cs
- ResourceWriter.cs
- MetadataArtifactLoaderCompositeFile.cs
- PopupRoot.cs
- Pen.cs
- LayoutTable.cs
- ErasingStroke.cs
- ISFTagAndGuidCache.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- XmlNode.cs
- EvidenceTypeDescriptor.cs
- TypeToken.cs
- PropertyPath.cs
- ForwardPositionQuery.cs
- DataBoundControl.cs
- BadImageFormatException.cs
- Property.cs
- EdmConstants.cs
- SqlBuilder.cs
- util.cs
- DataServiceCollectionOfT.cs
- StringTraceRecord.cs
- KnownColorTable.cs
- DocumentPageHost.cs
- TreeViewDesigner.cs
- ProxyWebPartManager.cs
- ExpressionTextBoxAutomationPeer.cs
- Misc.cs
- _SSPIWrapper.cs
- SourceChangedEventArgs.cs
- GB18030Encoding.cs
- CalendarDataBindingHandler.cs
- MenuEventArgs.cs
- MaskedTextBoxDesignerActionList.cs
- DateTimeOffset.cs