ArcGIS Pro 2.8 API Reference Guide
SetDisplayCacheType Method

ArcGIS.Desktop.Mapping Namespace > Layer Class : SetDisplayCacheType Method
ArcGIS.Core.CIM.DisplayCacheType
Sets the layer's display cache type. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SetDisplayCacheType( 
   DisplayCacheType cacheType
)
Public Sub SetDisplayCacheType( _
   ByVal cacheType As DisplayCacheType _
) 

Parameters

cacheType
ArcGIS.Core.CIM.DisplayCacheType
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
When you set DisplayCacheType.MaxAge, you may want to call SetDisplayCacheMaxAge method to set the duration otherwise it uses the default value that is 5.0 minutes.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layer Class
Layer Members