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


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

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