Dispose()
- Updated2025-10-06
- 1 minute(s) read
Closes the specified session and deallocates the reserved resources, if not already disposed.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIDCPower
public void Dispose()
Remarks
You can call this method safely more than once, even if the session is already closed.
A call to this method disposes the SafeHandle class used to hold the instrument handle. If the call to this method fails due to some reason, like the session being closed by some external means, you will not be notified about the failure. To help you identify failures in the ReleaseHandle method of the SafeHandle class, managed debugging assistant (MDA) is activated.