ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / ClearFeatureCacheAsync Method / ClearFeatureCacheAsync(Boolean) Method
Show a toast notification when the cache operation is complete.

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

    Parameters

    showNotification
    Show a toast notification when the cache operation is complete.
    Exceptions
    ExceptionDescription
    Emptying the feature cache is only allowed on the active map.
    Emptying the feature cache is not allowed during an edit session.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also