Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AgentContext Class

 

Encapsulates the context of the agent environment.

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

System.Object
  Microsoft.VisualStudio.TestTools.Execution.AgentContext

[SerializableAttribute]
public class AgentContext

NameDescription
System_CAPS_pubmethodAgentContext(String, String, String, Boolean)

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

NameDescription
System_CAPS_pubpropertyConnectionString

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

System_CAPS_pubpropertyDisplayName

Gets or sets the display name of the agent, which is unique throughout an environment.

System_CAPS_pubpropertyIsRemote

Gets a value that indicates whether this agent context is executed remotely.

System_CAPS_pubpropertyName

Gets or sets the fully qualified name of the agent as registered with the test controller.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateForLocalAgent()

Returns a new AgentContext for a locally hosted agent.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: