AgentContext(String, String, String, Boolean) Constructor

Definition

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

public:
 AgentContext(System::String ^ agentName, System::String ^ agentDisplayName, System::String ^ agentConnectionString, bool isRemote);
public AgentContext(string agentName, string agentDisplayName, string agentConnectionString, bool isRemote);
new Microsoft.VisualStudio.TestTools.Execution.AgentContext : string * string * string * bool -> Microsoft.VisualStudio.TestTools.Execution.AgentContext
Public Sub New (agentName As String, agentDisplayName As String, agentConnectionString As String, isRemote As Boolean)

Parameters

agentName
String

The name of the agent.

agentDisplayName
String

The display name for the agent.

agentConnectionString
String

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

isRemote
Boolean

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

Applies to