Click or drag to resize

P4ServerRunCommand Method

Run a P4 command on the P4 Server

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.255.3501
Syntax
public bool RunCommand(
	string cmd,
	uint cmdId,
	bool tagged,
	string[] args,
	int argc
)

Parameters

cmd
Type: SystemString
Command code
cmdId
Type: SystemUInt32
Unique Id for the run of the command
tagged
Type: SystemBoolean
Use tagged output for the results
args
Type: SystemString
Arguments for the command
argc
Type: SystemInt32
Argument count

Return Value

Type: Boolean
Success/Failure
Remarks
If the command fails, the error output will contain one or more errors generated by the P4 server.
See Also