Udostępnij za pośrednictwem


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
'Usage
Dim instance As LoadTestContext 
Dim value As Integer 

value = instance.AgentId

instance.AgentId = value
public int AgentId { get; internal set; }
public:
property int AgentId {
    int get ();
    void set (int value);
}
public function get AgentId () : int 
public function set AgentId (value : int)

Property Value

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

Remarks

If you run a load test on a test rig with four agents, the AgentIds are numbered 1 to 4.

.NET Framework Security

See Also

Reference

LoadTestContext Class

LoadTestContext Members

Microsoft.VisualStudio.TestTools.LoadTesting Namespace