RepositoryGetLabel Method (String)
|
Get the record for an existing label from the repository.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax public Label GetLabel(
string label
)
Public Function GetLabel (
label As String
) As Label
public:
Label^ GetLabel(
String^ label
)
member GetLabel :
label : string -> Label
Parameters
- label
- Type: SystemString
Label name
Return Value
Type:
LabelThe 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