UserDataAccountStore UserDataAccountStore UserDataAccountStore UserDataAccountStore Class

Definition

Represents a data store that contains user accounts.

public : sealed class UserDataAccountStore : IUserDataAccountStore, IUserDataAccountStore2, IUserDataAccountStore3public sealed class UserDataAccountStore : IUserDataAccountStore, IUserDataAccountStore2, IUserDataAccountStore3Public NotInheritable Class UserDataAccountStore Implements IUserDataAccountStore, IUserDataAccountStore2, IUserDataAccountStore3// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Call RequestStoreAsync to get an instance of UserDataAccountStore.

Methods

CreateAccountAsync(String) CreateAccountAsync(String) CreateAccountAsync(String) CreateAccountAsync(String)

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

public : IAsyncOperation<UserDataAccount> CreateAccountAsync(PlatForm::String userDisplayName)public IAsyncOperation<UserDataAccount> CreateAccountAsync(String userDisplayName)Public Function CreateAccountAsync(userDisplayName As String) As IAsyncOperation( Of UserDataAccount )// You can use this method in JavaScript.
Parameters
userDisplayName
PlatForm::String String String String

A string containing the user name that is suitable for display.

Returns
See Also

CreateAccountAsync(String, String) CreateAccountAsync(String, String) CreateAccountAsync(String, String) CreateAccountAsync(String, String)

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

public : IAsyncOperation<UserDataAccount> CreateAccountAsync(PlatForm::String userDisplayName, PlatForm::String packageRelativeAppId)public IAsyncOperation<UserDataAccount> CreateAccountAsync(String userDisplayName, String packageRelativeAppId)Public Function CreateAccountAsync(userDisplayName As String, packageRelativeAppId As String) As IAsyncOperation( Of UserDataAccount )// You can use this method in JavaScript.
Parameters
userDisplayName
PlatForm::String String String String

A string containing the user name that is suitable for display.

packageRelativeAppId
PlatForm::String String String String

The GUID that identifies the app in the Windows Store.

Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreateAccountAsync(String, String, String) CreateAccountAsync(String, String, String) CreateAccountAsync(String, String, String) CreateAccountAsync(String, String, String)

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

public : IAsyncOperation<UserDataAccount> CreateAccountAsync(PlatForm::String userDisplayName, PlatForm::String packageRelativeAppId, PlatForm::String enterpriseId)public IAsyncOperation<UserDataAccount> CreateAccountAsync(String userDisplayName, String packageRelativeAppId, String enterpriseId)Public Function CreateAccountAsync(userDisplayName As String, packageRelativeAppId As String, enterpriseId As String) As IAsyncOperation( Of UserDataAccount )// You can use this method in JavaScript.
Parameters
userDisplayName
PlatForm::String String String String

A string containing the user name that is suitable for display.

packageRelativeAppId
PlatForm::String String String String

The GUID that identifies the app in the Windows Store.

enterpriseId
PlatForm::String String String String

The enterprise identity associated with the user data account.

Returns
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
See Also

FindAccountsAsync() FindAccountsAsync() FindAccountsAsync() FindAccountsAsync()

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

public : IAsyncOperation<IVectorView<UserDataAccount>> FindAccountsAsync()public IAsyncOperation<IReadOnlyList<UserDataAccount>> FindAccountsAsync()Public Function FindAccountsAsync() As IAsyncOperation( Of IReadOnlyListUserDataAccount )// You can use this method in JavaScript.
Returns
IAsyncOperation<IVectorView<UserDataAccount>> IAsyncOperation<IReadOnlyList<UserDataAccount>> IAsyncOperation<IReadOnlyList<UserDataAccount>> IAsyncOperation<IReadOnlyList<UserDataAccount>>

Returns the collection of user data accounts, scoped by access request.

GetAccountAsync(String) GetAccountAsync(String) GetAccountAsync(String) GetAccountAsync(String)

Asynchronously gets the specified account.

public : IAsyncOperation<UserDataAccount> GetAccountAsync(PlatForm::String id)public IAsyncOperation<UserDataAccount> GetAccountAsync(String id)Public Function GetAccountAsync(id As String) As IAsyncOperation( Of UserDataAccount )// You can use this method in JavaScript.
Parameters
id
PlatForm::String String String String

The Id string identifying the account.

Returns

Events

StoreChanged StoreChanged StoreChanged StoreChanged

Occurs when the UserDataAccountStore changes.

public : event TypedEventHandler StoreChanged<UserDataAccountStore,  UserDataAccountStoreChangedEventArgs>public event TypedEventHandler StoreChanged<UserDataAccountStore,  UserDataAccountStoreChangedEventArgs>Public Event StoreChanged<UserDataAccountStore,  UserDataAccountStoreChangedEventArgs>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)