使用提供的信息初始化 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测试运行所在的计算机的名称。
outcome
类型:Microsoft.VisualStudio.TestTools.Common.TestOutcomeTestOutcome 枚举的成员,指示测试运行如何结束。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。