This document is archived and information here might be outdated.  Recommended version.


INAContext.Agents Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAContext Interface > INAContext.Agents Property
ArcGIS Developer Help

INAContext.Agents Property

The collection of agents associated with the analysis.

[Visual Basic .NET]
Public ReadOnly Property Agents As INamedSet
[C#]
public INamedSet Agents {get;}
[C++]
HRESULT get_Agents(
  INamedSet** Agents
);
[C++]
Parameters
Agents [out, retval]

Agents is a parameter of type INamedSet**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

Agents returns any custom agents that are attached to the NAContext.  Agents are objects that implement INAAgent and perform additional behavior when the NAContext is updated and when the NATraversalResult is updated.

See Also

INAContext Interface