DCPowerMeasurementEventArgs(T) Class
- Updated2024-01-04
- 3 minute(s) read
DCPowerMeasurementEventArgsT Class
Holds the event data obtained after asynchronous measurement completion.
Inheritance Hierarchy
SystemObject
SystemEventArgs
System.ComponentModelAsyncCompletedEventArgs
NationalInstruments.ModularInstruments.NIDCPowerDCPowerMeasurementEventArgsT
SystemEventArgs
System.ComponentModelAsyncCompletedEventArgs
NationalInstruments.ModularInstruments.NIDCPowerDCPowerMeasurementEventArgsT
Namespace: NationalInstruments.ModularInstruments.NIDCPower
Assembly: NationalInstruments.ModularInstruments.NIDCPower.Fx40 (in NationalInstruments.ModularInstruments.NIDCPower.Fx40.dll) Version: 2023
Syntax
public sealed class DCPowerMeasurementEventArgs<T> : AsyncCompletedEventArgs
Public NotInheritable Class DCPowerMeasurementEventArgs(Of T) Inherits AsyncCompletedEventArgs
Type Parameters
- T
- Refers to DCPowerMeasureResult when used with BeginMeasure(String, DCPowerMeasureResult, AsyncCallback, Object). Refers to DCPowerFetchResult when used with BeginFetch(String, PrecisionTimeSpan, Int32, DCPowerFetchResult, AsyncCallback, Object).
The DCPowerMeasurementEventArgsT type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| DCPowerMeasurementEventArgsT |
Initializes a new instance of type DCPowerMeasurementEventArgsT.
|
Properties
| Name | Description | |
|---|---|---|
| Cancelled | Gets a value indicating whether an asynchronous operation has been canceled. (Inherited from AsyncCompletedEventArgs.) | |
| Error | Gets a value indicating which error occurred during an asynchronous operation. (Inherited from AsyncCompletedEventArgs.) | |
| Result |
Gets the result obtained by the measurement operation.
| |
| UserState | Gets the unique identifier for the asynchronous task. (Inherited from AsyncCompletedEventArgs.) |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
This class derives from AsyncCompletedEventArgs that contains
Error and Cancelled.
Error contains exception that was thrown during that operation.
Cancelled is used to indicate whether the operation was completed or cancelled.
This class also contains readings that are obtained as a result of the operation.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.