Show / Hide Table of Contents

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
TargetVersions
.NET Windows200.0 - 300.0
UWP100.9 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.