CacheStoreProvider::Remove Method (String^, CacheItemRemovedReason)

 

Removes the specified item from the cache if it exists.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public:
virtual Object^ Remove(
	String^ key,
	CacheItemRemovedReason reason
) abstract

Parameters

key
Type: System::String^

The identifier for the cache item to remove.

reason
Type: System.Web.Caching::CacheItemRemovedReason

The reason the item was removed.

Return Value

Type: System::Object^

The removed item.

.NET Framework
Available since 4.7
Return to top
Show: