Share via


SecureStorage.SetAsync Method

Definition

Overloads

SetAsync(String, String)

Stores the value which is encrypted, for a given Key.

SetAsync(String, String, SecAccessible)

Stores the value which is encrypted, for a given Key. iOS override to specify SecAccessible for the KeyChain.

SetAsync(String, String)

Stores the value which is encrypted, for a given Key.

public static System.Threading.Tasks.Task SetAsync (string key, string value);

Parameters

key
System.String

Storage Key.

value
System.String

The value to be encrypted.

Returns

System.Threading.Tasks.Task

Applies to

SetAsync(String, String, SecAccessible)

Stores the value which is encrypted, for a given Key. iOS override to specify SecAccessible for the KeyChain.

public static System.Threading.Tasks.Task SetAsync (string key, string value, Security.SecAccessible accessible);

Parameters

key
System.String

Storage Key.

value
System.String

The value to be encrypted.

accessible
Security.SecAccessible

The KeyChain accessibility to create the encrypted record with.

Returns

System.Threading.Tasks.Task

Applies to