RepositoryUpdateLabel Method
|
Update the record for a label in the repository
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax public Label UpdateLabel(
Label label
)
Public Function UpdateLabel (
label As Label
) As Label
public:
Label^ UpdateLabel(
Label^ label
)
member UpdateLabel :
label : Label -> Label
Parameters
- label
- Type: Perforce.P4Label
Label specification for the label being updated
Return Value
Type:
LabelThe 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