共用方式為


TeamFoundationVersionControlService.LabelItem 方法 (TeamFoundationRequestContext, String, String, VersionControlLabel, array<LabelItemSpec[], LabelChildOption)

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

語法

'宣告
Public Function LabelItem ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    label As VersionControlLabel, _
    labelSpecs As LabelItemSpec(), _
    children As LabelChildOption _
) As TeamFoundationDataReader
public TeamFoundationDataReader LabelItem(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    VersionControlLabel label,
    LabelItemSpec[] labelSpecs,
    LabelChildOption children
)

參數

  • workspaceName
    型別:System.String
    工作區名稱,如果 itemSpecs 而言是區域性的。
  • workspaceOwner
    型別:System.String
    工作區的擁有人,如果 itemSpecs 而言是區域性的。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 以下列順序執行:標籤和其相關聯的動作 LabelResult [in] 清單。失敗失敗 [in] 清單問題,當展開 itemSpecs 時。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

LabelItem 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間