CacheStoreProvider.Remove Método

Definição

Remove o item especificado do cache.Removes the specified item from the cache.

Sobrecargas

Remove(String)

Remove o item do cache.Removes the item from the cache.

Remove(String, CacheItemRemovedReason)

Remove o item especificado do cache, caso ele exista.Removes the specified item from the cache if it exists.

Remove(String)

Remove o item do cache.Removes the item from the cache.

public:
 abstract System::Object ^ Remove(System::String ^ key);
public abstract object Remove (string key);
abstract member Remove : string -> obj
Public MustOverride Function Remove (key As String) As Object

Parâmetros

key
String

O identificador para o item de cache.The identifier for the cache item.

Retornos

Object

O item, se ele existir; caso contrário null.The item if it exits; otherwise null.

Aplica-se a

Remove(String, CacheItemRemovedReason)

Remove o item especificado do cache, caso ele exista.Removes the specified item from the cache if it exists.

public:
 abstract System::Object ^ Remove(System::String ^ key, System::Web::Caching::CacheItemRemovedReason reason);
public abstract object Remove (string key, System.Web.Caching.CacheItemRemovedReason reason);
abstract member Remove : string * System.Web.Caching.CacheItemRemovedReason -> obj
Public MustOverride Function Remove (key As String, reason As CacheItemRemovedReason) As Object

Parâmetros

key
String

O identificador para o item de cache a ser removido.The identifier for the cache item to remove.

reason
CacheItemRemovedReason

O motivo pelo qual o item foi removido.The reason the item was removed.

Retornos

Object

O item removido.The removed item.

Aplica-se a