Click or drag to resize

RepositoryGetBranchSpec Method (String, String, String, Options)

Get the record for an existing branch from the repository.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public BranchSpec GetBranchSpec(
	string branch,
	string stream,
	string parent,
	Options options
)

Parameters

branch
Type: SystemString
Branch name
stream
Type: SystemString
Stream name
parent
Type: SystemString
Parent stream
options
Type: Perforce.P4Options
Options

Return Value

Type: BranchSpec
The Branch object if branch was found, null if creation failed
Examples
To get a branch spec:
BranchSpec getBranchSpec = _repository.GetBranchSpec("newBranchSpec");
See Also