NIRfsg.GetInstrumentHandle Method
- Updated2024-05-08
- 1 minute(s) read
NIRfsgGetInstrumentHandle Method
Gets the SafeHandle to the NIRfsg instrument session.
Namespace: NationalInstruments.ModularInstruments.NIRfsg
Assembly: NationalInstruments.ModularInstruments.NIRfsg.Fx40 (in NationalInstruments.ModularInstruments.NIRfsg.Fx40.dll) Version: 2022
Syntax
public SafeHandle GetInstrumentHandle()
Public Function GetInstrumentHandle As SafeHandle
Return Value
Type: 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.