UserDataAccountManager.RequestStoreAsync(UserDataAccountStoreAccessType) UserDataAccountManager.RequestStoreAsync(UserDataAccountStoreAccessType) UserDataAccountManager.RequestStoreAsync(UserDataAccountStoreAccessType) UserDataAccountManager.RequestStoreAsync(UserDataAccountStoreAccessType) UserDataAccountManager.RequestStoreAsync(UserDataAccountStoreAccessType) Method

Definition

Asynchronously returns the UserDataAccountStore from the system.

public : static IAsyncOperation<UserDataAccountStore> RequestStoreAsync(UserDataAccountStoreAccessType storeAccessType)
static IAsyncOperation<UserDataAccountStore> RequestStoreAsync(UserDataAccountStoreAccessType storeAccessType) const;
public static IAsyncOperation<UserDataAccountStore> RequestStoreAsync(UserDataAccountStoreAccessType storeAccessType)
Public Shared Function RequestStoreAsync(storeAccessType As UserDataAccountStoreAccessType) As IAsyncOperation(Of UserDataAccountStore)
Windows.ApplicationModel.UserDataAccounts.UserDataAccountManager.requestStoreAsync(storeAccessType).done( /* Your success and error handlers */ );

Parameters

storeAccessType
UserDataAccountStoreAccessType UserDataAccountStoreAccessType UserDataAccountStoreAccessType

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

Returns

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.