TestResultMessage Constructor (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.
Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Sub New ( _
computerName As String, _
runId As Guid, _
test As ITestElement, _
kind As TestMessageKind _
)
public TestResultMessage(
string computerName,
Guid runId,
ITestElement test,
TestMessageKind kind
)
public:
TestResultMessage(
String^ computerName,
Guid runId,
ITestElement^ test,
TestMessageKind kind
)
new :
computerName:string *
runId:Guid *
test:ITestElement *
kind:TestMessageKind -> TestResultMessage
public function TestResultMessage(
computerName : String,
runId : Guid,
test : ITestElement,
kind : TestMessageKind
)
Parameters
computerName
Type: StringThe name of the computer that executed the test run.
runId
Type: GuidA Guid for the test run.
test
Type: Microsoft.VisualStudio.TestTools.Common.ITestElementAn ITestElement object.
kind
Type: Microsoft.VisualStudio.TestTools.Common.TestMessageKindOne of the TestMessageKind values.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.