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: System.String
    The fully qualified name of the controller.
  • displayName
    Type: System.String
    The 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: System.String
    The 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

See Also

Reference

ControllerContext Class

Microsoft.VisualStudio.TestTools.Execution Namespace

Name

DisplayName

ConnectionString