The parameters used by the connection

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public void SetConnectionData(
	string port,
	string user,
	string password,
	string client
)
Visual Basic
Public Sub SetConnectionData ( _
	port As String, _
	user As String, _
	password As String, _
	client As String _
)
Visual C++
public:
void SetConnectionData(
	String^ port, 
	String^ user, 
	String^ password, 
	String^ client
)

Parameters

port
Type: System..::..String
user
Type: System..::..String
password
Type: System..::..String
client
Type: System..::..String

Remarks

The properties, client, port, user, and password, represent the criteria used to connect to a P4 server. If one or more is changed, the bridge will drop the current connection if any and attempt to connect to the (possibly different) P4 server when the next command is executed. If it is desirable to validate the connection, execute a command.

See Also