Click or drag to resize

P4ServerSetConnectionData Method

The parameters used by the connection

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public void SetConnectionData(
	string port,
	string user,
	string password,
	string client
)

Parameters

port
Type: SystemString
user
Type: SystemString
password
Type: SystemString
client
Type: SystemString
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