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
)
Public Function RunCommand (
cmd As String,
cmdId As UInteger,
tagged As Boolean,
args As String(),
argc As Integer
) As Boolean
public:
bool RunCommand(
String^ cmd,
unsigned int cmdId,
bool tagged,
array<String^>^ args,
int argc
)
member RunCommand :
cmd : string *
cmdId : uint32 *
tagged : bool *
args : string[] *
argc : int -> bool
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:
BooleanSuccess/Failure
Remarks
If the command fails, the error output will contain one or more
errors generated by the P4 server.
See Also