将 RunInfo 对象添加到 RunInfoList 属性值。
命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
Public Sub AddRunInfo ( _
    textMessage As String, _
    ex As Exception, _
    computer As String, _
    outcome As TestOutcome _
)
public void AddRunInfo(
    string textMessage,
    Exception ex,
    string computer,
    TestOutcome outcome
)
public:
void AddRunInfo(
    String^ textMessage, 
    Exception^ ex, 
    String^ computer, 
    TestOutcome outcome
)
member AddRunInfo : 
        textMessage:string * 
        ex:Exception * 
        computer:string * 
        outcome:TestOutcome -> unit 
public function AddRunInfo(
    textMessage : String, 
    ex : Exception, 
    computer : String, 
    outcome : TestOutcome
)
参数
- textMessage
 类型:System.String
 一个 string,包含有关测试运行执行的文本信息。
- ex
 类型:System.Exception
 一个可选的 Exception。
- computer
 类型:System.String
 测试运行所在的计算机的名称。
- outcome
 类型:Microsoft.VisualStudio.TestTools.Common.TestOutcome
 TestOutcome 枚举的成员,指示测试运行如何结束。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。