共用方式為


Repository.LabelItem 方法

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function LabelItem ( _
    workspaceName As String, _
    workspaceOwner As String, _
    label As VersionControlLabel, _
    labelSpecs As LabelItemSpec(), _
    children As LabelChildOption, _
    <OutAttribute> ByRef failures As List(Of Failure) _
) As List(Of LabelResult)
[WebMethodAttribute]
public List<LabelResult> LabelItem(
    string workspaceName,
    string workspaceOwner,
    VersionControlLabel label,
    LabelItemSpec[] labelSpecs,
    LabelChildOption children,
    out List<Failure> failures
)

參數

  • workspaceName
    類型:System.String
    工作區名稱,如果 itemSpecs 區域。
  • workspaceOwner
    類型:System.String
    工作區的擁有人,如果 itemSpecs 區域。

傳回值

類型:System.Collections.Generic.List<LabelResult>
標籤及其相關的動作清單。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間