Method CreateAsync
CreateAsync(string?)
Creates a new AppDataCredentialPersistence object asynchronously with the specified persistence ID.
Declaration
public static Task<CredentialPersistence> CreateAsync(string? persistenceId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | persistenceId | An optional string that specifies a unique identifier for the persistence instance. |
Returns
| Type | Description |
|---|---|
| Task<CredentialPersistence> |
Exceptions
| Type | Condition |
|---|---|
| PlatformNotSupportedException | Thrown if this application is not an MSIX packaged application. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Windows | 200.0 - 300.0 |
| UWP | 100.9 - 200.8 |