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

命名空間:  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, _
    maxClientPathLength As PathLength _
) As TeamFoundationDataReader
public TeamFoundationDataReader LabelItem(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    VersionControlLabel label,
    LabelItemSpec[] labelSpecs,
    LabelChildOption children,
    PathLength maxClientPathLength
)

參數

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

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 在下列順序:標籤及其關聯的動作失敗 LabelResult [- list [-發生失敗的清單,當展開 itemSpecs 時。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

LabelItem 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間