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


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

INALocator.FindClosestAmongAllAgents Property

Indicates if the closest location (only) should be returned.

[Visual Basic .NET]
Public Property FindClosestAmongAllAgents As Boolean
[C#]
public bool FindClosestAmongAllAgents {get; set;}
[C++]
HRESULT get_FindClosestAmongAllAgents(
  VARIANT_BOOL findClosest
);
[C++]
HRESULT put_FindClosestAmongAllAgents(
  Boolean* findClosest
);
[C++]
Parameters
findClosest [in]

findClosest is a parameter of type bool findClosest [out, retval]
findClosest is a parameter of type bool*

Product Availability

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

Remarks

FindClosestAmongAllAgents specifies if you want to search among all locator agents or not.

When you have many network sources, you may want to stop once you find a location within the search tolerance of one of the agents.  If this is the case, set FindClosestAmongAllAgents to false and the first locator to find a location will stop the search.

See Also

INALocator Interface