Run a P4 command on the P4 Server
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public bool RunCommand( string cmd, uint cmdId, bool tagged, string[] args, int argc ) |
Visual Basic |
---|
Public Function RunCommand ( _ cmd As String, _ cmdId As UInteger, _ tagged As Boolean, _ args As String(), _ argc As Integer _ ) As Boolean |
Visual C++ |
---|
public: bool RunCommand( String^ cmd, unsigned int cmdId, bool tagged, array<String^>^ args, int argc ) |
Parameters
- cmd
- Type: System..::..String
Command code
- cmdId
- Type: System..::..UInt32
- tagged
- Type: System..::..Boolean
Use tagged output for the results
- args
- Type: array<System..::..String>[]()[][]
Arguments for the command
- argc
- Type: System..::..Int32
Argument count
Return Value
Success/Failure
Remarks
If the command fails, the error output will contain one or more
errors generated by the P4 server.