Share via


VersionControlServer.CreateLabel Method (VersionControlLabel, array<LabelItemSpec , LabelChildOption)

Create or update a label.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Function CreateLabel ( _
    label As VersionControlLabel, _
    itemSpecs As LabelItemSpec(), _
    options As LabelChildOption _
) As LabelResult()
public LabelResult[] CreateLabel(
    VersionControlLabel label,
    LabelItemSpec[] itemSpecs,
    LabelChildOption options
)
public:
array<LabelResult^>^ CreateLabel(
    VersionControlLabel^ label, 
    array<LabelItemSpec^>^ itemSpecs, 
    LabelChildOption options
)
member CreateLabel : 
        label:VersionControlLabel * 
        itemSpecs:LabelItemSpec[] * 
        options:LabelChildOption -> LabelResult[] 
public function CreateLabel(
    label : VersionControlLabel, 
    itemSpecs : LabelItemSpec[], 
    options : LabelChildOption
) : LabelResult[]

Parameters

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client.LabelResult[]
Results of the label operations.

Remarks

If an itemSpecs element has no match, a failure will be reported.

.NET Framework Security

See Also

Reference

VersionControlServer Class

CreateLabel Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace