Show / Hide Table of Contents

Class AppDataCredentialPersistence

Provides a default means of persisting application credentials.

Inheritance
System.Object
CredentialPersistence
AppDataCredentialPersistence
Implements
ILoadable
CredentialPersistence.CreateDefaultAsync(String)
CredentialPersistence.CreateDefault(String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 System.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()

Cancel loading metadata for 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 metadata for the object asynchronously.

Remove(Credential)

Removes the specified credential.

RetryLoadAsync()

Loads or retries loading metadata for the object asynchronously.

Update(Credential)

Updates the specified credential.

Events

Name Description
Loaded

Event that is raised when the object is done loading.

LoadStatusChanged

Event that is raised when the LoadStatus property changes.

Applies to

TargetVersions
.NET Windows200.0 - 200.8
UWP100.9 - 200.8
In This Article
Back to top Copyright © 2022 Esri.