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


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

INAContext.Locator Property

The locator used for finding network locations for class items.

[Visual Basic .NET]
Public ReadOnly Property Locator As INALocator
[C#]
public INALocator Locator {get;}
[C++]
HRESULT get_Locator(
  INALocator** Locator
);
[C++]
Parameters
Locator [out, retval]

Locator is a parameter of type INALocator**

Product Availability

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

Remarks

Locator returns the default NALocator for the NAClass.

The locator is used by the network analyst loading tools when it tries to locate NALocationObjects.  You can set the Locator property on the INAContextEdit interface to change the default locator.  You can also override the locator used if you call NAClassLoader programmatically.

See Also

INAContext Interface

.NET Samples

Closest facility solver Location-allocation solver ArcGIS Network Analyst extension Engine application ArcGIS Network Analyst extension Engine application Origin-destination cost matrix solver Route layer Service area solver Vehicle routing problem solver