ArcObjects Library Reference (NetworkAnalyst)  

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(
  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

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