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
- EdmComplexTypeAttribute.cs
- RouteParser.cs
- AvTraceDetails.cs
- BinaryReader.cs
- ParsedAttributeCollection.cs
- HttpProfileBase.cs
- DeobfuscatingStream.cs
- UserControlDocumentDesigner.cs
- ConsumerConnectionPoint.cs
- RegularExpressionValidator.cs
- TreeViewHitTestInfo.cs
- SqlTransaction.cs
- TransactionScopeDesigner.cs
- ApplicationId.cs
- Converter.cs
- SafeMILHandle.cs
- EmbeddedMailObjectsCollection.cs
- XmlDesigner.cs
- PhoneCallDesigner.cs
- EntityConnection.cs
- AttachmentService.cs
- SchemaNotation.cs
- PermissionToken.cs
- GlyphCache.cs
- ByteStack.cs
- RequestSecurityTokenResponse.cs
- PageBreakRecord.cs
- HtmlButton.cs
- DataMemberFieldConverter.cs
- AggregateException.cs
- SqlBinder.cs
- JpegBitmapEncoder.cs
- EnumUnknown.cs
- DataRowCollection.cs
- CodeThrowExceptionStatement.cs
- QuaternionRotation3D.cs
- ValidationSummary.cs
- RulePatternOps.cs
- Highlights.cs
- WindowsTab.cs
- BaseAddressPrefixFilterElement.cs
- PropertyTab.cs
- EventDescriptorCollection.cs
- ListMarkerLine.cs
- TextTreeFixupNode.cs
- DynamicObject.cs
- WSSecureConversation.cs
- XmlSchemaImporter.cs
- Normalizer.cs
- BamlRecordWriter.cs
- IPAddressCollection.cs
- NativeMethods.cs
- DispatcherExceptionFilterEventArgs.cs
- SoapObjectInfo.cs
- WhileDesigner.xaml.cs
- DeviceSpecificDesigner.cs
- BuildProviderUtils.cs
- WindowsScrollBarBits.cs
- AuthenticationModuleElement.cs
- WebReferencesBuildProvider.cs
- WmlLabelAdapter.cs
- MinimizableAttributeTypeConverter.cs
- UriTemplateTrieNode.cs
- SerializerWriterEventHandlers.cs
- FormViewInsertedEventArgs.cs
- MenuCommand.cs
- MailBnfHelper.cs
- InkSerializer.cs
- PlainXmlDeserializer.cs
- FlowSwitchDesigner.xaml.cs
- ContextQuery.cs
- PagedDataSource.cs
- MultiDataTrigger.cs
- HitTestResult.cs
- GridViewHeaderRowPresenter.cs
- SchemaImporterExtensionElement.cs
- InheritanceRules.cs
- ProfileSettingsCollection.cs
- UIElementPropertyUndoUnit.cs
- WorkflowQueuingService.cs
- SchemaNotation.cs
- SqlConnectionFactory.cs
- Focus.cs
- RegexCode.cs
- BaseTemplateBuildProvider.cs
- PropertyRef.cs
- FilterException.cs
- DataGridViewCellConverter.cs
- AnnotationComponentChooser.cs
- Rect3D.cs
- SecurityMessageProperty.cs
- ItemAutomationPeer.cs
- StrokeCollectionConverter.cs
- backend.cs
- ScriptControlDescriptor.cs
- safesecurityhelperavalon.cs
- COM2IProvidePropertyBuilderHandler.cs
- DesignerActionUIStateChangeEventArgs.cs
- SynchronizedDisposablePool.cs
- ViewStateException.cs