ControllerContext Constructor
Initializes a new instance of the ControllerContext class by using the provided name, display name, and connection string.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
displayName As String, _
connectionString As String _
)
public ControllerContext(
string name,
string displayName,
string connectionString
)
public:
ControllerContext(
String^ name,
String^ displayName,
String^ connectionString
)
new :
name:string *
displayName:string *
connectionString:string -> ControllerContext
public function ControllerContext(
name : String,
displayName : String,
connectionString : String
)
Parameters
name
Type: StringThe fully qualified name of the controller.
displayName
Type: StringThe display name for the controller. Typically, this is the Domain Name Server (DNS) host name of the controller machine, excluding the domain suffix.
connectionString
Type: StringThe name of the controller. This includes the port number.
Remarks
Although public, this ControllerContext constructor is called internally by the test framework.
.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.