ArcObjects Library Reference (NetworkAnalyst)  

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

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.

CoClasses that implement INALocatorLocationFieldsAgent

CoClasses and 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