Share via


UserDataAccountStore Class

Definition

Represents a data store that contains user accounts.

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
Inheritance
Object Platform::Object IInspectable UserDataAccountStore
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Call RequestStoreAsync to get an instance of UserDataAccountStore.

Version history

Windows version SDK version Value added
1607 14393 CreateAccountAsync(String,String)
1607 14393 StoreChanged
1703 15063 CreateAccountAsync(String,String,String)

Methods

CreateAccountAsync(String, String, String)

Asynchronously creates a user data account, specifying a displayable user name, a GUID that identifies the app in the Microsoft Store, and the enterprise identity associated with the user account.

CreateAccountAsync(String, String)

Asynchronously creates a user data account, specifying a displayable user name and a GUID that identifies the app in the Microsoft Store.

CreateAccountAsync(String)

Asynchronously creates a user data account, specifying a displayable user name.

FindAccountsAsync()

Returns a collection of UserDataAccount objects from the store based on the UserDataAccountStoreAccessType value passed into RequestStoreAsync.

GetAccountAsync(String)

Asynchronously gets the specified account.

Events

StoreChanged

Occurs when the UserDataAccountStore changes.

Applies to