This document is archived and information here might be outdated. Recommended version. |
Provides access to the field names used by the locator.
Name | Description | |
---|---|---|
OIDFieldName | The OID field name. | |
PositionFieldName | The position field name. | |
SideFieldName | The side field name. | |
SourceIDFieldName | The source ID field name. |
Classes | Description |
---|---|
NALocatorLocationFieldsAgent | Defines the network location fields to be used by a locator. |
INALocatorLocationFieldsAgent has been superseded by INALocatorLocationFieldsAgent2.
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;
}
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