TeamProjectCollectionWebService.UpdateServicingOperation 方法
更新服務作業。 ,在呼叫方法之前,在 stepGroups 集合中列出的所有服務的步驟群組必須加入至組態資料庫。
命名空間: Microsoft.TeamFoundation.Framework.Server.WebServices
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
<WebMethodAttribute> _
Public Sub UpdateServicingOperation ( _
servicingOperation As String, _
stepGroups As List(Of String), _
executionHandlers As List(Of String) _
)
[WebMethodAttribute]
public void UpdateServicingOperation(
string servicingOperation,
List<string> stepGroups,
List<string> executionHandlers
)
參數
- servicingOperation
型別:System.String
一次的服務作業更新。
- stepGroups
型別:System.Collections.Generic.List<String>
服務的步驟群組的集合。
- executionHandlers
型別:System.Collections.Generic.List<String>
服務作業執行處理常式的集合。每個項目都會指定一個完整的型別名稱。
例外狀況
例外狀況 | 條件 |
---|---|
ServicingStepGroupNotFoundException | 至少從 stepGroups 集合中服務的步驟群組於組態資料庫中沒有定義。 |
AccessCheckException |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。