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


IPointSnapper.RemoveCachedShapes 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.RemoveCachedShapes Method
ArcGIS Developer Help

IPointSnapper.RemoveCachedShapes Method

Remove the shape from the cache. The token is acquired by calling CacheShape.

[Visual Basic .NET]
Public Sub RemoveCachedShapes ( _
    ByVal token As Integer _
)
[C#]
public void RemoveCachedShapes (
    int token
);
[C++]
HRESULT RemoveCachedShapes(
  long token
);
[C++]
Parameters
token [in]

token is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Errors Returned

ComException � Token is not valid.

Remarks

RemoveCachedShapes clears any shapes associated with a given token from the snapping cache.  An exception is thrown when an invalid token provided.  The snap cache is cleared when a call to RemoveCachedShapes is made; the next subsequent call to Snap will build the cache.

See Also

IPointSnapper Interface