This document is archived and information here might be outdated.  Recommended version.

IDynamicCacheLayerManager.Invalidate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDynamicCacheLayerManager Interface > IDynamicCacheLayerManager.Invalidate Method
ArcGIS Developer Help

IDynamicCacheLayerManager.Invalidate Method

Invalidate a certain area of the cache, according to the given extent. If the input extent is null, invalidates the entire cache. Duoble-buffer does not show changes until new tiles are available.

[Visual Basic .NET]
Public Sub Invalidate ( _
    ByVal Extent As IEnvelope, _
    ByVal doubleBuffer As Boolean _
public void Invalidate (
    IEnvelope Extent,
    bool doubleBuffer
HRESULT Invalidate(
  IEnvelope* Extent,
  VARIANT_BOOL doubleBuffer
Extent [in]

Extent is a parameter of type IEnvelope* doubleBuffer [in]
doubleBuffer is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Passing a null extent will result in update of the cache for the entire layer (determined by the layer area of interest).

When double-buffer is false, the invalidated tiles will disappear from the display immediately.

When double-buffer is true, the invalidated tiles will keep being rendered, until the new tiles are ready, or until a defined max time (time out), which ever comes first.

See Also

IDynamicCacheLayerManager Interface