Share via


Repository.UnlabelItem 方法

从命名标签移除特定的项。

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

语法

声明
<WebMethodAttribute> _
Public Function UnlabelItem ( _
    workspaceName As String, _
    workspaceOwner As String, _
    labelName As String, _
    labelScope As String, _
    items As ItemSpec(), _
    version As VersionSpec, _
    <OutAttribute> ByRef failures As List(Of Failure) _
) As List(Of LabelResult)
[WebMethodAttribute]
public List<LabelResult> UnlabelItem(
    string workspaceName,
    string workspaceOwner,
    string labelName,
    string labelScope,
    ItemSpec[] items,
    VersionSpec version,
    out List<Failure> failures
)

参数

  • workspaceName
    类型:System.String
    工作区域的名称,如果使用本地 itemspecs。
  • workspaceOwner
    类型:System.String
    工作区域的所有者,如果使用本地 itemspecs。
  • labelName
    类型:System.String
    移除项的标签的名称。

返回值

类型:System.Collections.Generic.List<LabelResult>
受影响的列表标签。

.NET Framework 安全性

请参阅

参考

Repository 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间