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.ClientAPI
Assembly:
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.
Return Value
Returns an Error object. If no error occurs, the Code property of the Error object is 0.