使用新的 TestRun 初始化新的 RunConfiguration 对象。
命名空间:  Microsoft.VisualStudio.TestTools.Execution
程序集:  Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Public Sub New ( _
    testRun As TestRun _
)
public RunConfiguration(
    TestRun testRun
)
public:
RunConfiguration(
    TestRun^ testRun
)
new : 
        testRun:TestRun -> RunConfiguration
public function RunConfiguration(
    testRun : TestRun
)
参数
- testRun
 类型:Microsoft.VisualStudio.TestTools.Common.TestRun
 用于初始化此 RunConfiguration 的 TestRun。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。