This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator Interface > INALocator.FindClosestAmongAllAgents Property (ArcObjects .NET 10.4 SDK) |
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(
VARIANT_BOOL findClosest
);
[C++]
Parameters findClosest [out, retval] findClosest is a parameter of type VARIANT_BOOL findClosest [in] findClosest is a parameter of type VARIANT_BOOL
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.