Share via


SecureStorage.GetAsync(String) Method

Definition

Gets and decrypts the value for a given key.

public:
 static System::Threading::Tasks::Task<System::String ^> ^ GetAsync(System::String ^ key);
public static System.Threading.Tasks.Task<string?> GetAsync (string key);
static member GetAsync : string -> System.Threading.Tasks.Task<string>
Public Shared Function GetAsync (key As String) As Task(Of String)

Parameters

key
String

The key to retrieve the value for.

Returns

The decrypted string value or null if a value was not found.

Applies to