NIRfsg.GetInstrumentHandle Method
- Updated2025-05-22
- 1 minute(s) read
NIRfsgGet
Gets the SafeHandle to the NIRfsg instrument session.
Namespace: NationalInstruments.ModularInstruments.NIRfsg
Assembly: NationalInstruments.ModularInstruments.NIRfsg.Fx45 (in NationalInstruments.ModularInstruments.NIRfsg.Fx45.dll) Version: 2025
Syntax
public SafeHandle GetInstrumentHandle()
Public Function GetInstrumentHandle As SafeHandle
Return Value
SafeHandleA SafeHandle to NIRfsg instrument session.
Remarks
Using the SafeHandle, you can get the IntPtr to the session; however, there are risks involved with using the 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
DangerousGetHandle.