SecureStorage.SetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.