This documentation is archived and is not being maintained.

VersionControlServer.CreateLabel Method

Create or update a label.

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

public LabelResult[] CreateLabel(
	VersionControlLabel label,
	LabelItemSpec[] itemSpecs,
	LabelChildOption options
)

Parameters

label
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlLabel
The label definition to create or update.
itemSpecs
Type: Microsoft.TeamFoundation.VersionControl.Client.LabelItemSpec[]
The item specs included in the label.
options
Type: Microsoft.TeamFoundation.VersionControl.Client.LabelChildOption
Options to handle existing items in a label.

Return Value

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

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

Show: