Share via


UserDataAccount Class

Definition

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

public ref class UserDataAccount sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserDataAccount final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserDataAccount
Public NotInheritable Class UserDataAccount
Inheritance
Object Platform::Object IInspectable UserDataAccount
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

Properties

CanShowCreateContactGroup

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

Microsoft Internal Use Only.

DeviceAccountTypeId

Gets the unique identifier for the type of the account.

DisplayName

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

EnterpriseId

Gets the enterprise identity associated with the user account.

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

Gets the icon associated with the UserDataAccount.

Id

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

IsProtectedUnderLock

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

OtherAppReadAccess

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

PackageFamilyName

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

ProviderProperties

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

UserDisplayName

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

Methods

DeleteAsync()

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

FindAppointmentCalendarsAsync()

Returns a collection of AppointmentCalendar instances associated with the UserDataAccount.

FindContactAnnotationListsAsync()

Returns a collection of ContactAnnotationList instances associated with the UserDataAccount.

FindContactGroupsAsync()

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

Microsoft Internal Use Only.

FindContactListsAsync()

Returns a collection of ContactList instances associated with the UserDataAccount.

FindEmailMailboxesAsync()

Returns a collection of EmailMailbox instances associated with the UserDataAccount.

FindUserDataTaskListsAsync()

Returns a collection of UserDataTask instances associated with the UserDataAccount.

SaveAsync()

Asynchronously persists the UserDataAccount to the database.

TryShowCreateContactGroupAsync()

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

Microsoft Internal Use Only.

Applies to