共用方式為


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。

傳回值

類型:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
要求的測試案例結果,如果找不到,則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ITestCaseResultHelper 介面

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestCaseResult

ITestAttachment