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


INAContext.Locator Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

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 (Code Files: frmClosestFacilitySolver) | ArcGIS Network Analyst extension Engine application (Code Files: frmLoadLocations frmNALayerProperties) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route layer (Code Files: Program)

.NET Related Topics

How to load data into a network analysis problem