Click or drag to resize

RepositoryUpdateLabel Method

Update the record for a label in the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.255.3501
Syntax
public Label UpdateLabel(
	Label label
)

Parameters

label
Type: Perforce.P4Label
Label specification for the label being updated

Return Value

Type: Label
The Label object if new depot was saved, null if creation failed
Examples
To lock a label:
Label l = rep.GetLabel("admin_label");
l.Locked = true;
rep.UpdateLabel(l);
See Also