使用所提供的测试运行 ID、执行 ID、父执行 ID 和测试 ID 初始化 TestResultId 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
Public Sub New ( _
    runId As Guid, _
    executionId As TestExecId, _
    parentExecutionId As TestExecId, _
    testId As TestId _
)
public TestResultId(
    Guid runId,
    TestExecId executionId,
    TestExecId parentExecutionId,
    TestId testId
)
public:
TestResultId(
    Guid runId, 
    TestExecId^ executionId, 
    TestExecId^ parentExecutionId, 
    TestId^ testId
)
new : 
        runId:Guid * 
        executionId:TestExecId * 
        parentExecutionId:TestExecId * 
        testId:TestId -> TestResultId
public function TestResultId(
    runId : Guid, 
    executionId : TestExecId, 
    parentExecutionId : TestExecId, 
    testId : TestId
)
参数
- runId
 类型:System.Guid
 用于测试运行的 Guid。
- executionId
 类型:Microsoft.VisualStudio.TestTools.Common.TestExecId
 一个 TestExecId 对象。
- parentExecutionId
 类型:Microsoft.VisualStudio.TestTools.Common.TestExecId
 父测试的 TestExecId 对象。
- testId
 类型:Microsoft.VisualStudio.TestTools.Common.TestId
 一个 TestId 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。