This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPointSnapper Interface > IPointSnapper.ClearCache Method (ArcObjects .NET 10.4 SDK) |
Clears the underlying snapping cache.
[Visual Basic .NET]
Public Sub ClearCache ( _
)
[C#] public void ClearCache ( );
[C++]
HRESULT ClearCache(
void
);
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.