WebTestContext.AgentId Property

Gets the zero-based index for the current agent.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public ReadOnly Property AgentId As Integer
'Usage
Dim instance As WebTestContext 
Dim value As Integer 

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

Property Value

Type: System.Int32
The index value of the current agent.

.NET Framework Security

See Also

Reference

WebTestContext Class

WebTestContext Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Controllers, Agents, and Rigs