TestResultMessage 构造函数 (ComputerInfo, Guid, ITestElement, TestMessageKind)

注意:此 API 现在已过时。

初始化 TestResultMessage 类的新实例。

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

语法

声明
<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")> _
Public Sub New ( _
    computerInfo As ComputerInfo, _
    runId As Guid, _
    test As ITestElement, _
    kind As TestMessageKind _
)
[ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultMessage(
    ComputerInfo computerInfo,
    Guid runId,
    ITestElement test,
    TestMessageKind kind
)
[ObsoleteAttribute(L"This constructor is obsolete. Use the constructor that takes string instead.")]
public:
TestResultMessage(
    ComputerInfo^ computerInfo, 
    Guid runId, 
    ITestElement^ test, 
    TestMessageKind kind
)
[<ObsoleteAttribute("This constructor is obsolete. Use the constructor that takes string instead.")>]
new : 
        computerInfo:ComputerInfo * 
        runId:Guid * 
        test:ITestElement * 
        kind:TestMessageKind -> TestResultMessage
public function TestResultMessage(
    computerInfo : ComputerInfo, 
    runId : Guid, 
    test : ITestElement, 
    kind : TestMessageKind
)

参数

备注

此构造函数方法已过时。 请改用 TestResultMessage

.NET Framework 安全性

请参见

参考

TestResultMessage 类

TestResultMessage 重载

Microsoft.VisualStudio.TestTools.Common 命名空间

TestResultMessage

ComputerInfo

StreamingContext

TestMessageKind