Share via


LoadTestContext.AgentId Property

Gets the one-based index for the current agent.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Property AgentId As Integer
public int AgentId { get; internal set; }
public:
property int AgentId {
    int get ();
    internal: void set (int value);
}
member AgentId : int with get, internal set
function get AgentId () : int 
internal function set AgentId (value : int)

Property Value

Type: Int32
The one-based index for the current agent.

Remarks

If you run a load test on a test rig that uses four agents, the AgentId valuess are numbered 1 to 4.

.NET Framework Security

See Also

Reference

LoadTestContext Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace