Click or drag to resize

RepositoryGetLabel Method (String)

Get the record for an existing label from the repository.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public Label GetLabel(
	string label
)

Parameters

label
Type: SystemString
Label name

Return Value

Type: Label
The Label object if label was found, null if creation failed
Examples
To get the admin_label:
string targetLabel = "admin_label";
Label l = rep.GetLabel(targetLabel);
See Also