TestRunTextResultMessage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TestRunTextResultMessage(Guid, String) |
Initializes a new instance of the TestRunTextResultMessage class. |
TestRunTextResultMessage(SerializationInfo, StreamingContext) |
Initializes a new instance of the TestRunTextResultMessage class. |
TestRunTextResultMessage(Guid, String, Exception) |
Initializes a new instance of the TestRunTextResultMessage class. |
TestRunTextResultMessage(ComputerInfo, Guid, String, TestMessageKind) |
Obsolete.
Initializes a new instance of the TestRunTextResultMessage class. |
TestRunTextResultMessage(String, Guid, String, TestMessageKind) |
Initializes a new instance of the TestRunTextResultMessage class. |
TestRunTextResultMessage(Guid, String)
Initializes a new instance of the TestRunTextResultMessage class.
public:
TestRunTextResultMessage(Guid runId, System::String ^ messageText);
public TestRunTextResultMessage (Guid runId, string messageText);
new Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage : Guid * string -> Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
Public Sub New (runId As Guid, messageText As String)
Parameters
- messageText
- String
The text for the message.
Applies to
TestRunTextResultMessage(SerializationInfo, StreamingContext)
Initializes a new instance of the TestRunTextResultMessage class.
protected:
TestRunTextResultMessage(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TestRunTextResultMessage (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object.
- context
- StreamingContext
A StreamingContext object.
Applies to
TestRunTextResultMessage(Guid, String, Exception)
Initializes a new instance of the TestRunTextResultMessage class.
public:
TestRunTextResultMessage(Guid runId, System::String ^ messageText, Exception ^ exception);
public TestRunTextResultMessage (Guid runId, string messageText, Exception exception);
new Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage : Guid * string * Exception -> Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
Public Sub New (runId As Guid, messageText As String, exception As Exception)
Parameters
- messageText
- String
The text for the message.
- exception
- Exception
The exception that precipitated this message.
Applies to
TestRunTextResultMessage(ComputerInfo, Guid, String, TestMessageKind)
Caution
This constructor is obsolete. Use the constructor that takes computerName instead.
Initializes a new instance of the TestRunTextResultMessage class.
public:
TestRunTextResultMessage(Microsoft::VisualStudio::TestTools::Common::ComputerInfo ^ computerInfo, Guid runId, System::String ^ messageText, Microsoft::VisualStudio::TestTools::Common::TestMessageKind messageKind);
[System.Obsolete("This constructor is obsolete. Use the constructor that takes computerName instead.")]
public TestRunTextResultMessage (Microsoft.VisualStudio.TestTools.Common.ComputerInfo computerInfo, Guid runId, string messageText, Microsoft.VisualStudio.TestTools.Common.TestMessageKind messageKind);
[<System.Obsolete("This constructor is obsolete. Use the constructor that takes computerName instead.")>]
new Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage : Microsoft.VisualStudio.TestTools.Common.ComputerInfo * Guid * string * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
Public Sub New (computerInfo As ComputerInfo, runId As Guid, messageText As String, messageKind As TestMessageKind)
Parameters
- computerInfo
- ComputerInfo
- messageText
- String
The text for the message.
- messageKind
- TestMessageKind
One of the TestMessageKind values.
- Attributes
Applies to
TestRunTextResultMessage(String, Guid, String, TestMessageKind)
Initializes a new instance of the TestRunTextResultMessage class.
public:
TestRunTextResultMessage(System::String ^ computerName, Guid runId, System::String ^ messageText, Microsoft::VisualStudio::TestTools::Common::TestMessageKind messageKind);
public TestRunTextResultMessage (string computerName, Guid runId, string messageText, Microsoft.VisualStudio.TestTools.Common.TestMessageKind messageKind);
new Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage : string * Guid * string * Microsoft.VisualStudio.TestTools.Common.TestMessageKind -> Microsoft.VisualStudio.TestTools.Common.TestRunTextResultMessage
Public Sub New (computerName As String, runId As Guid, messageText As String, messageKind As TestMessageKind)
Parameters
- computerName
- String
The name of the machine that ran the test.
- messageText
- String
The text for the message.
- messageKind
- TestMessageKind
One of the TestMessageKind values.