Sdílet prostřednictvím


TestResultMessage Constructors

Definition

Overloads

TestResultMessage()

Initializes a new instance of the TestResultMessage class.

TestResultMessage(TestResultMessage)

Initializes a new instance of the TestResultMessage class by using the provided test result message.

TestResultMessage(SerializationInfo, StreamingContext)

Initializes a new instance of the TestResultMessage class from serialized XML data.

TestResultMessage(ComputerInfo, Guid, TestMessageKind)
Obsolete.

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.

TestResultMessage(String, Guid, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.

TestResultMessage(ComputerInfo, Guid, ITestElement, TestMessageKind)
Obsolete.

Initializes a new instance of the TestResultMessage class.

TestResultMessage(String, Guid, ITestElement, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, test element, and test result kind.

TestResultMessage()

Initializes a new instance of the TestResultMessage class.

protected:
 TestResultMessage();
protected TestResultMessage ();
Protected Sub New ()

Applies to

TestResultMessage(TestResultMessage)

Initializes a new instance of the TestResultMessage class by using the provided test result message.

protected:
 TestResultMessage(Microsoft::VisualStudio::TestTools::Common::TestResultMessage ^ copy);
protected TestResultMessage (Microsoft.VisualStudio.TestTools.Common.TestResultMessage copy);
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : Microsoft.VisualStudio.TestTools.Common.TestResultMessage -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Protected Sub New (copy As TestResultMessage)

Parameters

Applies to

TestResultMessage(SerializationInfo, StreamingContext)

Initializes a new instance of the TestResultMessage class from serialized XML data.

protected:
 TestResultMessage(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestResultMessage (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Applies to

TestResultMessage(ComputerInfo, Guid, TestMessageKind)

Caution

This constructor is obsolete. Use the constructor that takes string instead.

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.

public:
 TestResultMessage(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::TestMessageKind kind);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultMessage (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.TestMessageKind kind);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Public Sub New (computerInfo As ComputerInfo, runId As Guid, kind As TestMessageKind)

Parameters

computerInfo
ComputerInfo

A ComputerInfo object.

runId
Guid

A Guid for the test run.

kind
TestMessageKind

One of the TestMessageKind values.

Attributes

Applies to

TestResultMessage(String, Guid, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, and test result kind.

public:
 TestResultMessage(System::String ^ computerName, Guid runId, Microsoft::VisualStudio::TestTools::Common::TestMessageKind kind);
public TestResultMessage (string computerName, Guid runId, Microsoft.VisualStudio.TestTools.Common.TestMessageKind kind);
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : string * Guid * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Public Sub New (computerName As String, runId As Guid, kind As TestMessageKind)

Parameters

computerName
String

The name of the computer that executed the test run.

runId
Guid

A Guid for the test run.

kind
TestMessageKind

One of the TestMessageKind values.

Applies to

TestResultMessage(ComputerInfo, Guid, ITestElement, TestMessageKind)

Caution

This constructor is obsolete. Use the constructor that takes string instead.

Initializes a new instance of the TestResultMessage class.

public:
 TestResultMessage(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestMessageKind kind);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")]
public TestResultMessage (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestMessageKind kind);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes string instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Public Sub New (computerInfo As ComputerInfo, runId As Guid, test As ITestElement, kind As TestMessageKind)

Parameters

computerInfo
ComputerInfo

A ComputerInfo object.

runId
Guid

A Guid for the test run.

kind
TestMessageKind

One of the TestMessageKind values.

Attributes

Applies to

TestResultMessage(String, Guid, ITestElement, TestMessageKind)

Initializes a new instance of the TestResultMessage class by using the provided computer name, test run ID, test element, and test result kind.

public:
 TestResultMessage(System::String ^ computerName, Guid runId, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Common::TestMessageKind kind);
public TestResultMessage (string computerName, Guid runId, Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Common.TestMessageKind kind);
new Microsoft.VisualStudio.TestTools.Common.TestResultMessage : string * Guid * Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestResultMessage
Public Sub New (computerName As String, runId As Guid, test As ITestElement, kind As TestMessageKind)

Parameters

computerName
String

The name of the computer that executed the test run.

runId
Guid

A Guid for the test run.

test
ITestElement

An ITestElement object.

kind
TestMessageKind

One of the TestMessageKind values.

Applies to