Share via


AgentContext Constructor

Initializes a new instance of the AgentContext class by using the provided parameters.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
Public Sub New ( _
    agentName As String, _
    agentDisplayName As String, _
    agentConnectionString As String, _
    isRemote As Boolean _
)
public AgentContext(
    string agentName,
    string agentDisplayName,
    string agentConnectionString,
    bool isRemote
)
public:
AgentContext(
    String^ agentName, 
    String^ agentDisplayName, 
    String^ agentConnectionString, 
    bool isRemote
)
new : 
        agentName:string * 
        agentDisplayName:string * 
        agentConnectionString:string * 
        isRemote:bool -> AgentContext
public function AgentContext(
    agentName : String, 
    agentDisplayName : String, 
    agentConnectionString : String, 
    isRemote : boolean
)

Parameters

  • agentName
    Type: String

    The name of the agent.

  • agentDisplayName
    Type: String

    The display name for the agent.

  • agentConnectionString
    Type: String

    The machine name of the agent and the port on which it listens for incoming connections.

  • isRemote
    Type: Boolean

    true if the agent is accessed remotely; otherwise, false.

.NET Framework Security

See Also

Reference

AgentContext Class

Microsoft.VisualStudio.TestTools.Execution Namespace