AgentContext.CreateForLocalAgent Method

Returns a new AgentContext for a locally hosted agent.

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

Syntax

'Declaration
Public Shared Function CreateForLocalAgent As AgentContext
public static AgentContext CreateForLocalAgent()
public:
static AgentContext^ CreateForLocalAgent()
static member CreateForLocalAgent : unit -> AgentContext 
public static function CreateForLocalAgent() : AgentContext

Return Value

Type: Microsoft.VisualStudio.TestTools.Execution.AgentContext
A new AgentContext for a locally hosted agent.

.NET Framework Security

See Also

Reference

AgentContext Class

Microsoft.VisualStudio.TestTools.Execution Namespace