共用方式為


HybridCache.RemoveAsync 方法

定義

多載

RemoveAsync(IEnumerable<String>, CancellationToken)

如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。

RemoveAsync(String, CancellationToken)

如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。

RemoveAsync(IEnumerable<String>, CancellationToken)

來源:
HybridCache.cs

如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。

public virtual System.Threading.Tasks.ValueTask RemoveAsync (System.Collections.Generic.IEnumerable<string> keys, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
override this.RemoveAsync : seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Overridable Function RemoveAsync (keys As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As ValueTask

參數

cancellationToken
CancellationToken

傳回

備註

實作者應將 null 視為空白。

適用於

RemoveAsync(String, CancellationToken)

來源:
HybridCache.cs

如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。

public abstract System.Threading.Tasks.ValueTask RemoveAsync (string key, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public MustOverride Function RemoveAsync (key As String, Optional cancellationToken As CancellationToken = Nothing) As ValueTask

參數

key
String
cancellationToken
CancellationToken

傳回

適用於