ITestCaseResultHelper.FindByLink 方法
使用位於 Visual Studio Team Foundation Server 的成品測試結果或測試結果附件的統一資源識別碼 (URI),尋找並傳回測試結果和選擇性的測試結果附件。
命名空間: Microsoft.TeamFoundation.TestManagement.Client
組件: Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
語法
'宣告
Function FindByLink ( _
artifactUri As Uri, _
<OutAttribute> ByRef testAttachment As ITestAttachment _
) As ITestCaseResult
ITestCaseResult FindByLink(
Uri artifactUri,
out ITestAttachment testAttachment
)
ITestCaseResult^ FindByLink(
Uri^ artifactUri,
[OutAttribute] ITestAttachment^% testAttachment
)
abstract FindByLink :
artifactUri:Uri *
testAttachment:ITestAttachment byref -> ITestCaseResult
function FindByLink(
artifactUri : Uri,
testAttachment : ITestAttachment
) : ITestCaseResult
參數
artifactUri
類型:Uri位於 Team Foundation Server 中的測試結果或測試結果附件 URI。
testAttachment
類型:Microsoft.TeamFoundation.TestManagement.Client.ITestAttachment%(輸出) 測試結果的附件。
傳回值
類型:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
要求的測試案例結果,如果找不到,則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。