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


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

INALocatorLocationFieldsAgent Interface

Provides access to the field names used by the locator.

Product Availability

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

Members

Name Description
Read/write property OIDFieldName The OID field name.
Read/write property PositionFieldName The position field name.
Read/write property SideFieldName The side field name.
Read/write property SourceIDFieldName The source ID field name.

Classes that implement INALocatorLocationFieldsAgent

Classes Description
NALocatorLocationFieldsAgent Defines the network location fields to be used by a locator.

Remarks

INALocatorLocationFieldsAgent has been superseded by INALocatorLocationFieldsAgent2.

[C#]
public INALocatorLocationFieldsAgent CreateNALocatorLocationFieldsAgent(INetworkDataset networkDataset,
                                                                        string sourceIDFieldName,
                                                                        string oidFieldName,
                                                                        string positionFieldName,
                                                                        string sideFieldName)
{
    INALocatorLocationFieldsAgent naLocatorLocationFieldsAgent = new NALocatorLocationFieldsAgentClass();
    INALocatorAgent naLocatorAgent = naLocatorLocationFieldsAgent as INALocatorAgent;
    naLocatorLocationFieldsAgent.OIDFieldName = oidFieldName;
    naLocatorLocationFieldsAgent.PositionFieldName = positionFieldName;
    naLocatorLocationFieldsAgent.SideFieldName = sideFieldName;
    naLocatorLocationFieldsAgent.SourceIDFieldName = sourceIDFieldName;
    naLocatorAgent.Bind(networkDataset, null);
    return naLocatorLocationFieldsAgent;
}
[Visual Basic .NET]
Public Function CreateNALocatorLocationFieldsAgent(ByVal networkDataset As INetworkDataset, _                                                                          ByVal sourceIDFieldName As String, _
                                                   ByVal oidFieldName As String, _
                                                   ByVal positionFieldName As String, _
                                                   ByVal sideFieldName As String) As INALocatorLocationFieldsAgent
    Dim naLocatorLocationFieldsAgent As INALocatorLocationFieldsAgent = New NALocatorLocationFieldsAgent()
    Dim naLocatorAgent As INALocatorAgent = naLocatorLocationFieldsAgent
    naLocatorLocationFieldsAgent.OIDFieldName = oidFieldName
    naLocatorLocationFieldsAgent.PositionFieldName = positionFieldName
    naLocatorLocationFieldsAgent.SideFieldName = sideFieldName
    naLocatorLocationFieldsAgent.SourceIDFieldName = sourceIDFieldName
    naLocatorAgent.Bind(networkDataset, Nothing)
    Return naLocatorLocationFieldsAgent
End Function