[This is preliminary documentation and is subject to change.]
Run a P4 command on the P4 Server
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)
Syntax
C# |
---|
public bool RunCommand( string cmd, bool tagged, string[] args, int argc ) |
Visual Basic |
---|
Public Function RunCommand ( _ cmd As String, _ tagged As Boolean, _ args As String(), _ argc As Integer _ ) As Boolean |
Visual C++ |
---|
public: bool RunCommand( String^ cmd, bool tagged, array<String^>^ args, int argc ) |
Parameters
- cmd
- Type: System..::..String
Command code
- 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.