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


INetworkEvaluator.CacheAttribute Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IN > INetworkEvaluator Interface > INetworkEvaluator.CacheAttribute Property
ArcGIS Developer Help

INetworkEvaluator.CacheAttribute Property

Indicates if this evaluator's values should be computed and stored when the network is built or computed at run time and never stored.

[Visual Basic .NET]
Public ReadOnly Property CacheAttribute As Boolean
[C#]
public bool CacheAttribute {get;}
[C++]
HRESULT get_CacheAttribute(
  Boolean* Cache
);
[C++]
Parameters
Cache [out, retval]

Cache is a parameter of type bool*

Product Availability

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

Remarks

The CacheAttribute property determines whether the values computed by this evaluator are stored in the logical network of the network dataset.

If the CacheAttribute property is set to True, then the attribute values are computed by the evaluator only when the network is built.  The computed attribute values are then stored in the logical network.  When a client queries for attribute values (such as during a network analysis), the attribute values are retrieved from the logical network.

If the CacheAttribute property is set to False, then the attribute values are computed by the evaluator whenever any client asks for an attribute value (such as during a network analysis).  The computed attribute values are not stored in the logical network.  Depending on the complexity of the evaluator, this operation can be much slower than looking up values stored in the logical network.

See Also

INetworkEvaluator Interface