Update the record for a label in the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public Label UpdateLabel(
	Label label
)
Visual Basic
Public Function UpdateLabel ( _
	label As Label _
) As Label
Visual C++
public:
Label^ UpdateLabel(
	Label^ label
)

Parameters

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

Return Value

The Label object if new depot was saved, null if creation failed

Examples

To lock a label:
CopyC#
Label l = rep.GetLabel("admin_label");
l.Locked = true;
rep.UpdateLabel(l);

See Also