Method CreateDefaultAsync
CreateDefaultAsync(String)
Creates a default CredentialPersistence object for the current platform and ensures it is loaded.
Declaration
public static async Task<CredentialPersistence> CreateDefaultAsync(string persistenceId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | persistenceId | An optional string that specifies a unique identifier for the persistence storage instance. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<CredentialPersistence> | A task which creates a new CredentialPersistence object for the current platform.
If the current platform is not supported, the task will instead return |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.9 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.2 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.9 - 200.8 |
| Xamarin.Android | 100.9 - 100.14 |
| Xamarin.iOS | 100.9 - 100.15 |
| UWP | 100.9 - 200.8 |