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


INALocatorFeatureAgent2 Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INALocatorFeatureAgent2 Interface

Provides access to properties of the feature locator agent.

Product Availability

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

Members

Description
Read-only property FullWhereClause The full where clause including the subtype predicate in the UseSubtype case.
Read/write property SnapType The method of snapping used.
Read/write property SourceName The network source name.
Read/write property SubtypeCode The subtype to be used to locate features.
Read/write property UseSubtype Indicates if subtypes should be used to locate features.
Read/write property WhereClause The where clause to filter candidate locations not including the subtype predicate in the UseSubtype case.

Inherited Interfaces

Interfaces Description
INALocatorFeatureAgent Provides access to properties of the feature locator agent.

CoClasses that implement INALocatorFeatureAgent2

CoClasses and Classes Description
NALocatorFeatureAgent Finds network feature locations for analysis.

Remarks

The INALocatorFeatureAgent2 interface allows you to specify a locator for spatial searching on a network source (a feature class). 

There are properties to constrain the locator to a particular subtype.  You can also specify a where clause to constrain the locator to only search on a subset of features.  This is useful if you don't want to locate on features that may be restricted.

You need to call the Bind method after setting these properties before using the locator agent.