Repository5.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, _
maxClientPathLength As Integer, _
<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,
int maxClientPathLength,
out List<Failure> failures
)
參數
- 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
判斷子標籤要如何處理。
- maxClientPathLength
類型:System.Int32
最大用戶端支援伺服器路徑長度。
- failures
類型:System.Collections.Generic.List<Failure>%
發生失敗的清單,當展開 itemSpecs 時。
傳回值
類型:System.Collections.Generic.List<LabelResult>
標籤及其相關的動作清單。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。