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
CoClasses that implement INALocatorLocationFieldsAgent
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