Partager via


TokenCache.SerializeUnifiedAndAdalCache Method

Definition

Caution

This is expected to be removed in MSAL.NET v5. We recommend using SerializeMsalV3/DeserializeMsalV3. Read more: https://aka.ms/msal-net-3x-cache-breaking-change

Serializes the entire token cache in both the ADAL V3 and unified cache formats.

[System.Obsolete("This is expected to be removed in MSAL.NET v5. We recommend using SerializeMsalV3/DeserializeMsalV3. Read more: https://aka.ms/msal-net-3x-cache-breaking-change", false)]
public Microsoft.Identity.Client.Cache.CacheData SerializeUnifiedAndAdalCache ();
[<System.Obsolete("This is expected to be removed in MSAL.NET v5. We recommend using SerializeMsalV3/DeserializeMsalV3. Read more: https://aka.ms/msal-net-3x-cache-breaking-change", false)>]
abstract member SerializeUnifiedAndAdalCache : unit -> Microsoft.Identity.Client.Cache.CacheData
override this.SerializeUnifiedAndAdalCache : unit -> Microsoft.Identity.Client.Cache.CacheData
Public Function SerializeUnifiedAndAdalCache () As CacheData

Returns

Serialized token cache CacheData

Implements

Attributes

Remarks

SerializeMsalV3()/DeserializeMsalV3(Byte[], Boolean) is compatible with other MSAL libraries such as MSAL for Python and MSAL for Java.

Applies to