Lock Method
- Updated2023-02-21
- 2 minute(s) read
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
Exception | Condition |
---|---|
ObjectDisposedException | The Lock method was accessed after the associated NISwitch.NISwitch object was disposed. |