ArcGIS Pro 3.2 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.

In This Topic
    FillFeatureCacheAsync(Boolean) Method
    In This Topic
    Fills the feature cache for all visible web feature layers (feature services) in the map.
    Syntax
    public Task FillFeatureCacheAsync( 
       bool showNotification
    )
    Public Overloads Function FillFeatureCacheAsync( _
       ByVal showNotification As Boolean _
    ) As Task

    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

    ArcGIS Pro version: 3 or higher.
    See Also