Share via


VersionControlServer.CreateLabel 方法 (VersionControlLabel, array<LabelItemSpec , LabelChildOption)

创建或更新一个标签。

命名空间:  Microsoft.TeamFoundation.VersionControl.Client
程序集:  Microsoft.TeamFoundation.VersionControl.Client(在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

语法

声明
Public Function CreateLabel ( _
    label As VersionControlLabel, _
    itemSpecs As LabelItemSpec(), _
    options As LabelChildOption _
) As LabelResult()
public LabelResult[] CreateLabel(
    VersionControlLabel label,
    LabelItemSpec[] itemSpecs,
    LabelChildOption options
)

参数

返回值

类型:array<Microsoft.TeamFoundation.VersionControl.Client.LabelResult[]
标签操作的结果。

备注

如果 itemSpecs 没有匹配元素,失败将报告。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

CreateLabel 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间