Method CreateDefault
CreateDefault(string?)
Creates a default CredentialPersistence object for the current platform.
Declaration
public static CredentialPersistence? CreateDefault(string? persistenceId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | persistenceId | An optional string that specifies a unique identifier for the persistence storage instance. |
Returns
| Type | Description |
|---|---|
| CredentialPersistence | A new CredentialPersistence object for the current platform.
If the current platform is not supported, |
Remarks
On Windows this will only return a non-null value if the application is configured as
a packaged application (ie using MSIX).
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.8 |
| .NET | 200.8 - 300.0 |
| .NET Windows | 200.8 - 300.0 |
| .NET Android | 200.8 - 300.0 |
| .NET iOS | 200.8 - 300.0 |
| .NET Framework | 200.8 |
| UWP | 200.8 |