Share via


SecureStorage.SetAsync(String, String) Method

Definition

Sets and encrypts a value for a given key.

public:
 static System::Threading::Tasks::Task ^ SetAsync(System::String ^ key, System::String ^ value);
public static System.Threading.Tasks.Task SetAsync (string key, string value);
static member SetAsync : string * string -> System.Threading.Tasks.Task
Public Shared Function SetAsync (key As String, value As String) As Task

Parameters

key
String

The key to set the value for.

value
String

Value to set.

Returns

A Task object with the current status of the asynchronous operation.

Applies to