Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.26 KB

userdataaccountmanager_requeststoreasync_1031356348.md

File metadata and controls

35 lines (24 loc) · 1.26 KB
-api-id -api-type
M:Windows.ApplicationModel.UserDataAccounts.UserDataAccountManager.RequestStoreAsync(Windows.ApplicationModel.UserDataAccounts.UserDataAccountStoreAccessType)
winrt method

Windows.ApplicationModel.UserDataAccounts.UserDataAccountManager.RequestStoreAsync

-description

Asynchronously returns the UserDataAccountStore from the system.

-parameters

-param storeAccessType

Specifies the access type, such as read-only for all accounts or read/write for the calling app's accounts.

-returns

Returns the UserDataAccountStore.

-remarks

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.

-examples

-see-also