CacheManager.Flush Method

Removes all items from the cache. If an error occurs during the removal, the cache is left unchanged.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
Public Sub Flush
public void Flush()
public:
virtual void Flush() sealed
public final function Flush()

Implements

ICacheManager.Flush()

Remarks

The CacheManager can be configured to use different storage mechanisms in which to store the CacheItems. Each of these storage mechanisms can throw exceptions particular to their own implementations.

See Also

CacheManager Class

Microsoft.Practices.EnterpriseLibrary.Caching Namespace