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


INetworkQuery.PopulateIDCache Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkQuery Interface > INetworkQuery.PopulateIDCache Method
ArcGIS Developer Help

INetworkQuery.PopulateIDCache Method

Initializes the index used for quickly finding network elements for the given source ID.

[Visual Basic .NET]
Public Sub PopulateIDCache ( _
    ByVal SourceID As Integer _
)
[C#]
public void PopulateIDCache (
    int SourceID
);
[C++]
HRESULT PopulateIDCache(
  long SourceID
);
[C++]
Parameters
SourceID [in]

SourceID is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The PopulateIDCache method caches the IDs for network elements in the specified source, improving the performance of element queries.  Populating the ID cache is useful when performing many queries for network elements within those cached source(s).

The SourceID parameter is the unique ID assigned to the NetworkSource in the network dataset.

See Also

INetworkQuery Interface