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: 2024.1.261.8274
Syntaxpublic BranchSpec GetBranchSpec(
string branch,
string stream,
string parent,
Options options
)
Public Function GetBranchSpec (
branch As String,
stream As String,
parent As String,
options As Options
) As BranchSpec
public:
BranchSpec^ GetBranchSpec(
String^ branch,
String^ stream,
String^ parent,
Options^ options
)
member GetBranchSpec :
branch : string *
stream : string *
parent : string *
options : Options -> BranchSpec
Parameters
- branch
- Type: SystemString
Branch name - stream
- Type: SystemString
Stream name - parent
- Type: SystemString
Parent stream - options
- Type: Perforce.P4Options
Options
Return Value
Type:
BranchSpecThe Branch object if branch was found, null if creation failed
Examples
To get a branch spec:
BranchSpec getBranchSpec = _repository.GetBranchSpec("newBranchSpec");
See Also