GetInstrumentHandle()
- Updated2025-10-14
- 1 minute(s) read
Gets the System.Runtime.InteropServices.SafeHandle to the NIRfsa instrument session.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public SafeHandle GetInstrumentHandle()
Remarks
Using the System.Runtime.InteropServices.SafeHandle, you can get the System.IntPtr to the session; however, there are risks involved with using the System.IntPtr. It is difficult to know the state of the handle, and the handle could be recycled while you are using it. For more information, refer to System.Runtime.InteropServices.SafeHandle.DangerousGetHandle.
Returns
A System.Runtime.InteropServices.SafeHandle to NIRfsa instrument session.