Get the record for an existing branch from the repository.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)
Syntax
C# |
---|
public BranchSpec GetBranchSpec( string branch, string stream, string parent, Options options ) |
Visual Basic |
---|
Public Function GetBranchSpec ( _ branch As String, _ stream As String, _ parent As String, _ options As Options _ ) As BranchSpec |
Visual C++ |
---|
public: BranchSpec^ GetBranchSpec( String^ branch, String^ stream, String^ parent, Options^ options ) |
Parameters
- branch
- Type: System..::..String
Branch name
- stream
- Type: System..::..String
Stream name
- parent
- Type: System..::..String
Parent stream
- options
- Type: Perforce.P4..::..Options
Options
Return Value
The Branch object if branch was found, null if creation failed
Examples
To get a branch spec:
CopyC#
![](../icons/CopyCode.gif)
BranchSpec getBranchSpec = _repository.GetBranchSpec("newBranchSpec");