ITestCaseResultHelper.CreateForUpdate 方法
建立空的測試案例結果物件,用於將變更的屬性有效率地儲存至伺服器。
命名空間: Microsoft.TeamFoundation.TestManagement.Client
組件: Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
語法
'宣告
Function CreateForUpdate ( _
testRunId As Integer, _
testResultId As Integer _
) As ITestCaseResult
ITestCaseResult CreateForUpdate(
int testRunId,
int testResultId
)
ITestCaseResult^ CreateForUpdate(
int testRunId,
int testResultId
)
abstract CreateForUpdate :
testRunId:int *
testResultId:int -> ITestCaseResult
function CreateForUpdate(
testRunId : int,
testResultId : int
) : ITestCaseResult
參數
testRunId
類型:Int32int,識別測試案例結果的測試回合。
testResultId
類型:Int32int,識別測試案例結果。
傳回值
類型:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
空的測試案例結果物件。
備註
若要將結果寫入伺服器,請呼叫 Save 方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。