ni-rfsg-dotnet-api-ref_doc

Content Type
Programming Language
Current manual
Table of Contents

NIRfsg.GetInstrumentHandle Method

NIRfsg.GetInstrumentHandle Method

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: SafeHandle
A 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.

See Also

In This Section
Was this information helpful?