CacheStoreProvider.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified item from the cache.
Overloads
Remove(String) |
Removes the item from the cache. |
Remove(String, CacheItemRemovedReason) |
Removes the specified item from the cache if it exists. |
Remove(String)
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
Parameters
- key
- String
The identifier for the cache item.
Returns
The item if it exits; otherwise null
.
Applies to
Remove(String, CacheItemRemovedReason)
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
Parameters
- key
- String
The identifier for the cache item to remove.
- reason
- CacheItemRemovedReason
The reason the item was removed.
Returns
The removed item.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET