[This is preliminary documentation and is subject to change.]

Get the record for an existing branch from the repository.

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)

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
parent
Type: System..::..String
options
Type: Perforce.P4..::..Options
Flags used when fetching an existing branch

Return Value

The Branch object if branch was found, null if creation failed

See Also