# IOleCache::Uncache

Removes a cache connection created in a prior call to IOleCache::Cache.

HRESULT Uncache(

DWORD dwConnection | //Cache connection to remove
); |

Parameter

dwConnection
  [in] Cache connection to remove. This nonzero value was returned by IOleCache::Cache when the cache was originally established.

Return Values

S_OK
  The cache connection was deleted.
OLE_E_NOCONNECTION
  No cache connection exists for dwConnection.

Remarks

The IOleCache::Uncache method removes a cache connection that was created in a prior call to IOleCache::Cache. It uses the dwConnection parameter that was returned by the prior call to IOleCache::Cache.

See Also

IOleCache::Cache