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