Show / Hide Table of Contents

Class AppDataCredentialPersistence

Provides a default means of persisting application credentials.

Inheritance
object
CredentialPersistence
AppDataCredentialPersistence
Implements
ILoadable
CredentialPersistence.CreateDefaultAsync(string)
CredentialPersistence.CreateDefault(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class AppDataCredentialPersistence : CredentialPersistence, ILoadable
Remarks

Credentials are encrypted using the Data Protection API and then stored in a secure settings container alongside the application. This API is only supported for use with MSIX packaged applications.

Constructors

Name Description
AppDataCredentialPersistence(string?)

Initializes a new instance of the AppDataCredentialPersistence class.

Properties

Name Description
IsSupported

Gets a value indicating whether this is a packaged application that supports securely saving credentials in the application storage.

LoadError

Gets the Exception associated with the last load error.

LoadStatus

Gets the load status.

PersistenceId

Gets the persistence ID.

Methods

Name Description
Add(Credential)

Adds the specified credential.

CancelLoad()

Attempts to cancel loading the object.

Clear()

Removes all credentials from the device.

CreateAsync(string?)

Creates a new AppDataCredentialPersistence object asynchronously with the specified persistence ID.

GetCredentials()

Returns a collection that contains all credentials managed by this instance.

LoadAsync()

Load the object asynchronously.

Remove(Credential)

Removes the specified credential.

RetryLoadAsync()

Loads or retries loading the object asynchronously.

Update(Credential)

Updates the specified credential.

Events

Name Description
LoadStatusChanged

Occurs when the LoadStatus property changes.

Loaded

Occurs when the object is done loading, whether loading succeeds, fails, or is canceled.

Applies to

TargetVersions
.NET Windows200.0 - 300.1
UWP100.9 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.