ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / FillFeatureCacheAsync Method / FillFeatureCacheAsync(IEnumerable<Layer>,Boolean) Method
The set of layers
Show a toast notification when the cache operation is complete.

In This Topic
    FillFeatureCacheAsync(IEnumerable<Layer>,Boolean) Method
    In This Topic
    Fills the feature cache for the specified web feature layers (feature services) that are part of this map. Layers that are not part of this map or do not support feature caching are ignored.
    Syntax
    public Task FillFeatureCacheAsync( 
       IEnumerable<Layer> layers,
       bool showNotification
    )
    Public Overloads Function FillFeatureCacheAsync( _
       ByVal layers As IEnumerable(Of Layer), _
       ByVal showNotification As Boolean _
    ) As Task

    Parameters

    layers
    The set of layers
    showNotification
    Show a toast notification when the cache operation is complete.
    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