Partager via


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: String

    The fully qualified name of the controller.

  • displayName
    Type: 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: 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