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 MustOverride Function Remove (
	key As String,
	reason As CacheItemRemovedReason
) As Object

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: