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


INetworkAttribute2.Refresh Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

INetworkAttribute2.Refresh Method

Refresh the network evaluators assigned to this network attribute.

[Visual Basic .NET]
Public Sub Refresh ( _
)
[C#]
public void Refresh (
);
[C++]
HRESULT Refresh(
void
);

Product Availability

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

Remarks

Calling Refresh propogates the call to INetworkEvaluator2::Refresh on the attribute's underlying network evaluators that implement INetworkEvaluator2.  This gives the evaluator an opportunity to update its state based on current data or parameter values.  This method is called by the network analyst solvers after setting INetworkAttribute2::Parameters prior to performing the solve operation.

 

When solving against live traffic data, Refresh puts the NetworkAttribute in a state to check for a dynamic traffic file (DTF) on the next time-based attribute query.  That first query will decide which DTF will apply to all subsequent solves, until the next call to Refresh.

See Also

INetworkAttribute2 Interface

.NET Samples

Subset network evaluators (Code Files: SubsetHelperUI)