Language

TaskAgentSession Constructors

Definition

Overloads

Name Description
TaskAgentSession()
TaskAgentSession(String, TaskAgentReference)

Initializes a new TaskAgentSession instance with the specified owner name and agent.

TaskAgentSession(String, TaskAgentReference, IDictionary<String,String>)

Initializes a new TaskAgentSession isntance with the specified owner name, agent, and capabilities.

TaskAgentSession()

public TaskAgentSession();
Public Sub New ()

Applies to

TaskAgentSession(String, TaskAgentReference)

Initializes a new TaskAgentSession instance with the specified owner name and agent.

public TaskAgentSession(string ownerName, Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentReference agent);
new Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession : string * Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentReference -> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession
Public Sub New (ownerName As String, agent As TaskAgentReference)

Parameters

ownerName
String

The name of the owner for this session. This should typically be the agent machine

agent
TaskAgentReference

The target agent for the session

Applies to

TaskAgentSession(String, TaskAgentReference, IDictionary<String,String>)

Initializes a new TaskAgentSession isntance with the specified owner name, agent, and capabilities.

public TaskAgentSession(string ownerName, Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentReference agent, System.Collections.Generic.IDictionary<string,string> systemCapabilities);
new Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession : string * Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentReference * System.Collections.Generic.IDictionary<string, string> -> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentSession
Public Sub New (ownerName As String, agent As TaskAgentReference, systemCapabilities As IDictionary(Of String, String))

Parameters

ownerName
String

The name of the owner for this session. This should typically be the agent machine

agent
TaskAgentReference

The target agent for the session

systemCapabilities
IDictionary<String,String>

A collection of capabilities to publish on session creation

Applies to