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


IPointSnapper.ClearCache Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPointSnapper Interface > IPointSnapper.ClearCache Method
ArcGIS Developer Help

IPointSnapper.ClearCache Method

Clears the underlying snapping cache.

[Visual Basic .NET]
Public Sub ClearCache ( _
)
[C#]
public void ClearCache (
);
[C++]
HRESULT ClearCache(
void
);

Product Availability

Available with ArcGIS Engine.

Remarks

While Snapping is enabled and calls to IPointSnapper.Snap are being made, a cache of the visible features is being actively maintained. 


The cache is cleared in a number of instances for you; as a developer you do not need to account for these situations.  The following list describes the cases when ClearCache is called.

 

 

When any of the following events are fired, the snapping cache is cleared.

There is no method to build the cache explicitly; this is handled internally when a client issues a call to IPointSnapper.Snap, at which time it is determined whether the cache needs to be rebuilt.

See Also

IPointSnapper Interface