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 with get
function get AgentId () : int

Property Value

Type: 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