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: System.String
The name of the agent.
- agentDisplayName
Type: System.String
The display name for the agent.
- agentConnectionString
Type: System.String
The machine name of the agent and the port on which it listens for incoming connections.
- isRemote
Type: System.Boolean
true if the agent is accessed remotely; otherwise, false.
.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.