Update the record for a label in the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
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);