ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / FillFeatureCacheAsync Method / FillFeatureCacheAsync(Boolean) Method
Show toast notifications when the cache operation is started and completed.

FillFeatureCacheAsync(Boolean) Method
Fills the feature cache for all visible web feature layers (feature services) in the map.
Syntax
public Task FillFeatureCacheAsync( 
   bool showNotification
)

Parameters

showNotification
Show toast notifications when the cache operation is started and completed.
Exceptions
ExceptionDescription
Filling the feature cache is only allowed on the active map.
The fill feature cache operation cannot be executed - likely another fill cache operation is in progress.
Remarks
Use CanFillFeatureCache before calling this function to ensure than an existing fill feature cache operation is not already in progress.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also