語言

MsalSessionTokenCacheProvider.WriteCacheBytesAsync(String, Byte[]) 方法

定義

會將其金鑰識別的標記快取寫入序列化機制。

protected override System.Threading.Tasks.Task WriteCacheBytesAsync(string cacheKey, byte[] bytes);
override this.WriteCacheBytesAsync : string * byte[] -> System.Threading.Tasks.Task
Protected Overrides Function WriteCacheBytesAsync (cacheKey As String, bytes As Byte()) As Task

參數

cacheKey
String

快取的鑰匙(帳號 ID 或應用程式 ID)。

bytes
Byte[]

用 blob 寫入快取。

傳回

當寫入操作完成時,A Task 會完成。

適用於