NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

TaskDoneEventArgs.CheckForException Method

  • Updated2023-02-21
  • 1 minute(s) read
TaskDoneEventArgs.CheckForException Method
Throws the Exception that occurred, if any exists.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.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

Log in to get a better experience