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


INALocator.QueryLocationByRow Method (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.QueryLocationByRow Method
ArcGIS Developer Help

INALocator.QueryLocationByRow Method

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,
  System.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*

Product Availability

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

Description

 

Remarks

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.

See Also

INALocator Interface