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


INAODCostMatrix.IsPopulated Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INAODCostMatrix.IsPopulated Property

Indicates if the matrix entry for given origin, destination index is populated.

[Visual Basic .NET]
Public Function get_IsPopulated ( _
    ByVal originIndex As Integer, _
    ByVal destinationIndex As Integer _
) As Boolean
[C#]
public bool get_IsPopulated (
    int originIndex,
    int destinationIndex
);
[C++]
HRESULT get_IsPopulated(
  long originIndex,
  long destinationIndex,
  VARIANT_BOOL* IsPopulated
);
[C++]

Parameters originIndex [in] originIndex is a parameter of type long destinationIndex [in] destinationIndex is a parameter of type long IsPopulated [out, retval] IsPopulated is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

Returns True if the matrix value for a particular origin and destination is populated. If the property returns False, then the matrix entry is unpopulated and the the default cost value will be returned when this entry is queried.

See Also

INAODCostMatrix Interface