NI-DAQmx .NET Framework 4.5 API Reference

TaskDoneEventArgs.CheckForException Method

  • 更新时间2023-02-21
  • 阅读时长1分钟
TaskDoneEventArgs.CheckForException Method
Throws the Exception that occurred, if any exists.

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

Syntax

public void CheckForException()
Public Sub CheckForException

Remarks

If the task stopped due to an error, an Exception is thrown that represents the particular error. If the task did not stop due to an error, the method returns. As an alternative to calling this method, you can check the Error property.

See Also