IWorkspace2.LockConnection Method
- 更新时间2023-02-21
- 阅读时长2分钟
Locks the current VeriStand Gateway connection. If the connection already is locked, you must provide the current password in order to set a new one.
Namespace:
NationalInstruments.VeriStand.ClientAPIAssembly: NationalInstruments.VeriStand.ClientAPI (in NationalInstruments.VeriStand.ClientAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Function LockConnection ( _ old_password As String, _ new_password As String _ ) As Error |
| C# |
|---|
Error LockConnection( string old_password, string new_password ) |
| Visual C++ |
|---|
Error^ LockConnection( String^ old_password, String^ new_password ) |
Parameters
- old_password
- Type: System.String
The current password for the connection, if it previously was locked.
- new_password
- Type: System.String
The new password to use to lock the connection.