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
| 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.
- userDisplayName
- PlatForm::String String String String
A string containing the user name that is suitable for display.
Returns the newly created UserDataAccount.
- 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.
- 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 the newly created UserDataAccount.
| 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.
- 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 the newly created UserDataAccount.
| 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 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.
- id
- PlatForm::String String String String
The Id string identifying the account.
Returns the UserDataAccount identified by the id parameter.
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.
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|