Delen via


UserDataAccountManager.RequestStoreAsync Method

Definition

Asynchronously returns the UserDataAccountStore from the system.

public:
 static IAsyncOperation<UserDataAccountStore ^> ^ RequestStoreAsync(UserDataAccountStoreAccessType storeAccessType);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<UserDataAccountStore> RequestStoreAsync(UserDataAccountStoreAccessType const& storeAccessType);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<UserDataAccountStore> RequestStoreAsync(UserDataAccountStoreAccessType storeAccessType);
function requestStoreAsync(storeAccessType)
Public Shared Function RequestStoreAsync (storeAccessType As UserDataAccountStoreAccessType) As IAsyncOperation(Of UserDataAccountStore)

Parameters

storeAccessType
UserDataAccountStoreAccessType

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

Returns

Returns the UserDataAccountStore.

Attributes

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.

Applies to