-api-id | -api-type |
---|---|
M:Windows.ApplicationModel.UserDataAccounts.UserDataAccountManager.RequestStoreAsync(Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreAccessType) |
winrt method |
Asynchronously returns the UserDataAccountStore from the system.
Specifies the access type, such as read-only for all accounts or read/write for the calling app's accounts.
Returns the UserDataAccountStore.
In order to gain access to the UserDataAccountStore, your app must declare at least one of the following capabilities:
- contacts
- appointments
- email If none of these capabilities are declared, RequestStoreAsync will throw an AccessDeniedException.
If RequestStoreAsync returns null it means that the user has turned off access in their privacy settings.