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


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

INAODCostMatrix.FindDestinationIndex Method

Finds the destination corresponding to the given network location.

[Visual Basic .NET]
Public Function FindDestinationIndex ( _
    ByVal Location As INALocation, _
    ByVal curbApproach As esriNACurbApproachType _
) As Integer
[C#]
public int FindDestinationIndex (
    INALocation Location,
    esriNACurbApproachType curbApproach
);
[C++]
HRESULT FindDestinationIndex(
  INALocation* Location,
  esriNACurbApproachType curbApproach
);
[C++]
Parameters
Location [in]

Location is a parameter of type INALocation* curbApproach [in]
curbApproach is a parameter of type esriNACurbApproachType

Product Availability

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

Remarks

Given a network location and curb approach, this method returns the internal index of a matching destination location. The internal index values range from 0 through INAODCostMatrix.DestinationCount - 1. There may be more than one matching destination location, in which case an arbitrary index value is returned.

If a matching destination index cannot be determined, the integer value -1 is returned.

See Also

INAODCostMatrix Interface