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


INAODCostMatrix.QueryRankedDestinationIndices 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.QueryRankedDestinationIndices Method
ArcGIS Developer Help

INAODCostMatrix.QueryRankedDestinationIndices Method

For a given origin, retrieves the indices of the populated destinations in increasing rank.

[Visual Basic .NET]
Public Sub QueryRankedDestinationIndices ( _
    ByVal originIndex As Integer, _
    ByVal destinationIndices As ILongArray _
)
[C#]
public void QueryRankedDestinationIndices (
    int originIndex,
    ILongArray destinationIndices
);
[C++]
HRESULT QueryRankedDestinationIndices(
  long originIndex,
  ILongArray* destinationIndices
);
[C++]
Parameters
originIndex [in]

originIndex is a parameter of type long destinationIndices [in, out]
destinationIndices is a parameter of type ILongArray*

Product Availability

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

Remarks

For a given origin (passed in by index), QueryRankedDestinationIndices retrieves the indices of the populated destinations in increasing rank as an ILongArray.  "Populated destinations" are the destinations for which a valid network path from the specified origin to the specified destination has been determined.  The destinations are ranked increasingly from least to greatest total cost of the network path from the origin to the destination. 

An origin's index can be retrieved via the FindOriginIndex method.

See Also

INAODCostMatrix Interface