RunInfo 构造函数

使用提供的信息初始化 RunInfo 类的实例。

命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

语法

声明
Public Sub New ( _
    textMessage As String, _
    ex As Exception, _
    computer As String, _
    outcome As TestOutcome _
)
public RunInfo(
    string textMessage,
    Exception ex,
    string computer,
    TestOutcome outcome
)
public:
RunInfo(
    String^ textMessage, 
    Exception^ ex, 
    String^ computer, 
    TestOutcome outcome
)
new : 
        textMessage:string * 
        ex:Exception * 
        computer:string * 
        outcome:TestOutcome -> RunInfo
public function RunInfo(
    textMessage : String, 
    ex : Exception, 
    computer : String, 
    outcome : TestOutcome
)

参数

  • textMessage
    类型:String

    一个 string,包含有关测试运行执行的文本信息。

  • ex
    类型:Exception

    一个可选的 Exception

  • computer
    类型:String

    测试运行所在的计算机的名称。

.NET Framework 安全性

请参阅

参考

RunInfo 类

Microsoft.VisualStudio.TestTools.Common 命名空间

TestOutcome