This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INALocator Interface > INALocator.QueryLocationByRow Method (ArcObjects .NET 10.4 SDK) |
Use the locator agents to find a network location from a row.
[Visual Basic .NET] Public Sub QueryLocationByRow ( _ ByVal row As IRow, _ ByRef Location As INALocation, _ ByRef distanceFromRow As Double _ )
[C#] public void QueryLocationByRow ( IRow row, ref INALocation Location, ref double distanceFromRow );
[C++]
HRESULT QueryLocationByRow(
IRow* row,
INALocation** Location,
double* distanceFromRow
);
[C++]
Parameters row [in]
row is a parameter of type IRow Location [in, out]
Location is a parameter of type INALocation distanceFromRow [in, out] distanceFromRow is a parameter of type double
Using the inbound Row object, the method calls QueryLocationByRow on each of its associated NALocatorAgent classes. If FindClosestAmongAllAgents is false, it will return after the first locator succeeds in finding a location.