UserDataAccount UserDataAccount UserDataAccount UserDataAccount UserDataAccount Class


Represents a user data account used to access email, contacts, calendars, and so on.

public : sealed class UserDataAccount
struct winrt::Windows::ApplicationModel::UserDataAccounts::UserDataAccount
public sealed class UserDataAccount
Public NotInheritable Class UserDataAccount
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Call UserDataAccountStore.GetAccountAsync to get an instance of this class.

Version history

Windows version SDK version Value added
1511 10586 EnterpriseId
1511 10586 IsProtectedUnderLock
1607 14393 DisplayName
1607 14393 ExplictReadAccessPackageFamilyNames
1703 15063 CanShowCreateContactGroup
1703 15063 FindContactGroupsAsync
1703 15063 FindUserDataTaskListsAsync
1703 15063 ProviderProperties
1703 15063 TryShowCreateContactGroupAsync


CanShowCreateContactGroup CanShowCreateContactGroup CanShowCreateContactGroup CanShowCreateContactGroup CanShowCreateContactGroup

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

DeviceAccountTypeId DeviceAccountTypeId DeviceAccountTypeId DeviceAccountTypeId DeviceAccountTypeId

Gets the unique identifier for the type of the account.

DisplayName DisplayName DisplayName DisplayName DisplayName

Gets or sets the human readable display name for the user data account.

EnterpriseId EnterpriseId EnterpriseId EnterpriseId EnterpriseId

Gets the enterprise identity associated with the user account.

ExplictReadAccessPackageFamilyNames ExplictReadAccessPackageFamilyNames ExplictReadAccessPackageFamilyNames ExplictReadAccessPackageFamilyNames ExplictReadAccessPackageFamilyNames

Gets a list of package family names for apps that have explicit read access even if they don't have the system capability.

Icon Icon Icon Icon Icon

Gets the icon associated with the UserDataAccount.

Id Id Id Id Id

Gets a string that uniquely identifies the UserDataAccount on the local device.

IsProtectedUnderLock IsProtectedUnderLock IsProtectedUnderLock IsProtectedUnderLock IsProtectedUnderLock

Gets a Boolean value indicating if the user account data is encrypted when the device becomes locked.

OtherAppReadAccess OtherAppReadAccess OtherAppReadAccess OtherAppReadAccess OtherAppReadAccess

Gets or sets a value indicating whether other apps on the device have read access to the UserDataAccount.

PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName

Gets the unique identifier for the app package that created the UserDataAccount.

ProviderProperties ProviderProperties ProviderProperties ProviderProperties ProviderProperties

Provides a place to store data to be used by the app when interacting with a UserDataAccount provider.

UserDisplayName UserDisplayName UserDisplayName UserDisplayName UserDisplayName

Gets or sets a user name associated with the UserDataAccount that is suitable for displaying.


DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync() DeleteAsync()

Asynchronously deletes all the contact, calendar and email data associated with the account.

FindAppointmentCalendarsAsync() FindAppointmentCalendarsAsync() FindAppointmentCalendarsAsync() FindAppointmentCalendarsAsync() FindAppointmentCalendarsAsync()

Returns a collection of AppointmentCalendar instances associated with the UserDataAccount.

FindContactAnnotationListsAsync() FindContactAnnotationListsAsync() FindContactAnnotationListsAsync() FindContactAnnotationListsAsync() FindContactAnnotationListsAsync()

Returns a collection of ContactAnnotationList instances associated with the UserDataAccount.

FindContactGroupsAsync() FindContactGroupsAsync() FindContactGroupsAsync() FindContactGroupsAsync() FindContactGroupsAsync()

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

FindContactListsAsync() FindContactListsAsync() FindContactListsAsync() FindContactListsAsync() FindContactListsAsync()

Returns a collection of ContactList instances associated with the UserDataAccount.

FindEmailMailboxesAsync() FindEmailMailboxesAsync() FindEmailMailboxesAsync() FindEmailMailboxesAsync() FindEmailMailboxesAsync()

Returns a collection of EmailMailbox instances associated with the UserDataAccount.

FindUserDataTaskListsAsync() FindUserDataTaskListsAsync() FindUserDataTaskListsAsync() FindUserDataTaskListsAsync() FindUserDataTaskListsAsync()

Returns a collection of UserDataTask instances associated with the UserDataAccount.

SaveAsync() SaveAsync() SaveAsync() SaveAsync() SaveAsync()

Asynchronously persists the UserDataAccount to the database.

TryShowCreateContactGroupAsync() TryShowCreateContactGroupAsync() TryShowCreateContactGroupAsync() TryShowCreateContactGroupAsync() TryShowCreateContactGroupAsync()

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.