Show / Hide Table of Contents

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, null will be returned.

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
TargetVersions
.NET Standard 2.0200.8
.NET200.8 - 300.0
.NET Windows200.8 - 300.0
.NET Android200.8 - 300.0
.NET iOS200.8 - 300.0
.NET Framework200.8
UWP200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.