HybridCache.RemoveAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoveAsync(IEnumerable<String>, CancellationToken) |
如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。 |
RemoveAsync(String, CancellationToken) |
如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。 |
RemoveAsync(IEnumerable<String>, CancellationToken)
如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。
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
參數
- keys
- IEnumerable<String>
- cancellationToken
- CancellationToken
傳回
備註
實作者應將 null
視為空白。
適用於
RemoveAsync(String, CancellationToken)
如果索引鍵存在,則以異步方式移除與索引鍵相關聯的值。
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