Freigeben über


UserDataAccountStore Klasse

Definition

Stellt einen Datenspeicher dar, der Benutzerkonten enthält.

public ref class UserDataAccountStore sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserDataAccountStore final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserDataAccountStore
Public NotInheritable Class UserDataAccountStore
Vererbung
Object Platform::Object IInspectable UserDataAccountStore
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Rufen Sie RequestStoreAsync auf, um eine instance von UserDataAccountStore zu erhalten.

Versionsverlauf

Windows-Version SDK-Version Wertschöpfung
1607 14393 CreateAccountAsync(String,String)
1607 14393 StoreChanged
1703 15063 CreateAccountAsync(String,String,String)

Methoden

CreateAccountAsync(String)

Erstellt asynchron ein Benutzerkonto unter Angabe eines anzeigebaren Benutzernamens.

CreateAccountAsync(String, String)

Erstellt asynchron ein Benutzerkonto unter Angabe eines anzeigebaren Benutzernamens und einer GUID , die die App im Microsoft Store identifiziert.

CreateAccountAsync(String, String, String)

Erstellt asynchron ein Benutzerdatenkonto unter Angabe eines anzeigebaren Benutzernamens, einer GUID , die die App im Microsoft Store identifiziert, und die dem Benutzerkonto zugeordnete Unternehmensidentität.

FindAccountsAsync()

Gibt eine Auflistung von UserDataAccount-Objekten aus dem Speicher basierend auf dem UserDataAccountStoreAccessType-Wert zurück, der an RequestStoreAsync übergeben wurde.

GetAccountAsync(String)

Ruft asynchron das angegebene Konto ab.

Ereignisse

StoreChanged

Tritt auf, wenn sich der UserDataAccountStore ändert.

Gilt für: