NI-SWITCH 19.0 .NET Framework 4.0 API Reference

Table of Contents

Lock Method

  • Updated2023-02-21
  • 2 minute(s) read
Lock Method
Acquires a synchronization lock on this instance of the NI-SWITCH driver.

Namespace:  NationalInstruments.ModularInstruments.NISwitch
Assembly:  NationalInstruments.ModularInstruments.NISwitch.Fx40 (in NationalInstruments.ModularInstruments.NISwitch.Fx40.dll) Version: 19.0.0.49152 (19.0.0.49152)
Visual Basic (Declaration)
Public Function Lock As SwitchDriverLock
C#
public SwitchDriverLock Lock()

Return Value

Type: NationalInstruments.ModularInstruments.NISwitch..::.SwitchDriverLock
Returns an object of type IIviDriverLock as a reference to the acquired lock.

Exceptions

ExceptionCondition
ObjectDisposedException The Lock method was accessed after the associated NISwitch.NISwitch object was disposed.

See Also

Log in to get a better experience