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


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

INALocatorFeatureAgent Interface

Provides access to properties of the feature locator agent. Note: the INALocatorFeatureAgent interface has been superseded by INALocatorFeatureAgent2. Please consider using the more recent version.

Product Availability

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

Members

Name Description
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.

Classes that implement INALocatorFeatureAgent

Classes Description
NALocatorFeatureAgent Finds network feature locations for analysis.

Remarks

INALocatorFeatureAgent has been superseded by INALocatorFeatureAgent2.

[C#]
public INALocatorAgent CreateLocatorFeatureAgent(INetworkDataset networkDataset,
                                                 string sourceName,
                                                 esriGeometryHitPartType snapType,
                                                 bool useSubtype,
                                                 int subtypeCode)
{
    INALocatorFeatureAgent naFeatureLocatorAgent = new NALocatorFeatureAgentClass();
    INALocatorAgent naLocatorAgent = naFeatureLocatorAgent as INALocatorAgent;
    naFeatureLocatorAgent.SnapType = snapType;
    naFeatureLocatorAgent.SourceName = sourceName;
    naFeatureLocatorAgent.UseSubtype = useSubtype;
    naFeatureLocatorAgent.SubtypeCode = subtypeCode;
    naLocatorAgent.Bind(networkDataset, null);
    return naLocatorAgent;
}
[Visual Basic .NET]
Public Function CreateLocatorFeatureAgent(ByVal networkDataset As INetworkDataset, _
                                          ByVal sourceName As String, _
                                          ByVal snapType As esriGeometryHitPartType, _
                                          ByVal useSubtype As Boolean, _
                                          ByVal subtypeCode As Integer) As INALocatorAgent
    Dim naFeatureLocatorAgent As INALocatorFeatureAgent = New NALocatorFeatureAgent()
    Dim naLocatorAgent As INALocatorAgent = naFeatureLocatorAgent
    naFeatureLocatorAgent.SnapType = snapType
    naFeatureLocatorAgent.SourceName = sourceName
    naFeatureLocatorAgent.UseSubtype = useSubtype
    naFeatureLocatorAgent.SubtypeCode = subtypeCode
    naLocatorAgent.Bind(networkDataset, Nothing)
    Return naLocatorAgent
End Function