共用方式為


HybridCache.RemoveByTagAsync 方法

定義

多載

RemoveByTagAsync(IEnumerable<String>, CancellationToken)

以異步方式移除與指定標記相關聯的所有值。

RemoveByTagAsync(String, CancellationToken)

以異步方式移除與指定標記相關聯的所有值。

RemoveByTagAsync(IEnumerable<String>, CancellationToken)

來源:
HybridCache.cs

以異步方式移除與指定標記相關聯的所有值。

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

參數

cancellationToken
CancellationToken

傳回

備註

實作者應將 null 視為空白。

適用於

RemoveByTagAsync(String, CancellationToken)

來源:
HybridCache.cs

以異步方式移除與指定標記相關聯的所有值。

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

參數

tag
String
cancellationToken
CancellationToken

傳回

適用於