TestCase.SetSubject Method (String, String)
Applies To: Windows 8.1
Sets the Subject of the TestCase.
Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)
Usage
'Usage
Dim instance As TestCase
Dim className As String
Dim instanceName As String
Dim returnValue As Subject
returnValue = instance.SetSubject(className, instanceName)
Syntax
'Declaration
Public Function SetSubject ( _
className As String, _
instanceName As String _
) As Subject
public Subject SetSubject (
string className,
string instanceName
)
public:
Subject^ SetSubject (
String^ className,
String^ instanceName
)
public Subject SetSubject (
String className,
String instanceName
)
public function SetSubject (
className : String,
instanceName : String
) : Subject
Parameters
- className
The class name of the Subject.
- instanceName
The instance name of the Subject. This parameter is optional.
Return Value
Returns Subject.
Remarks
The class name is the value of element TestCase/Subject/Class/ProgrammaticName.
The instance name is the value of element TestCase/Subject/Instance/ProgrammaticName.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows 8.1
See Also
Reference
TestCase Class
TestCase Members
Microsoft.Assessments.Runtime Namespace