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


INAODCostMatrix.QueryPopulatedDestinationIndices Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAODCostMatrix.QueryPopulatedDestinationIndices Method

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

[Visual Basic .NET]
Public Sub QueryPopulatedDestinationIndices ( _
    ByVal originIndex As Integer, _
    ByVal destinationIndices As ILongArray _
)
[C#]
public void QueryPopulatedDestinationIndices (
    int originIndex,
    ILongArray destinationIndices
);
[C++]
HRESULT QueryPopulatedDestinationIndices(
  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), QueryPopulatedDestinationIndices retrieves the indices of the populated destinations in an ILongArray.  "Populated destinations" are the destinations for which a valid network path from the specified origin to the specified destination has been determined.

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

See Also

INAODCostMatrix Interface