NI-DAQmx .NET Framework 4.5 API Reference

TaskDoneEventArgs.Error Property

  • 已更新2023-02-21
  • 閱讀時間為 1 分鐘
TaskDoneEventArgs.Error Property
Gets the Exception that occurred, if any.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public Exception Error { get; }
Public ReadOnly Property Error As Exception
	Get

Property Value

Type: Exception
If the task stopped due to an error, an Exception is returned that represents the particular error. If the task did not stop due to an error, this value is .

Remarks

As an alternative to checking this property, you can call the CheckForException method.

See Also