Share via


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
public int AgentId { get; }
public:
property int AgentId {
    int get ();
}
member AgentId : int
function get AgentId () : int

Property Value

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

.NET Framework Security

See Also

Reference

WebTestContext Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Working with Agents