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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容。
- workspaceName
型別:System.String
工作區名稱,如果 itemSpecs 而言是區域性的。
- workspaceOwner
型別:System.String
工作區的擁有人,如果 itemSpecs 而言是區域性的。
- label
型別:Microsoft.TeamFoundation.VersionControl.Server.VersionControlLabel
物件包含標籤中繼資料。只使用名稱、註解和分類。
- labelSpecs
型別:array<Microsoft.TeamFoundation.VersionControl.Server.LabelItemSpec[]
要加入的項目加入至標籤。
- children
型別:Microsoft.TeamFoundation.VersionControl.Server.LabelChildOption
判斷子標籤要如何處理。
傳回值
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
含有結果的 TeamFoundationDataReader 以下列順序執行:標籤和其相關聯的動作 LabelResult [in] 清單。失敗失敗 [in] 清單問題,當展開 itemSpecs 時。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。