Delen via


ContactManager Class

Definition

Represents a service that source apps can call to access contact data.

public ref class ContactManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class ContactManager
Public Class ContactManager
Inheritance
Object Platform::Object IInspectable ContactManager
Attributes

Windows requirements

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

Remarks

All relevant methods of this class are static methods.

For info about how to manage contacts, see Contacts and calendar.

Version history

Windows version SDK version Value added
1607 14393 GetForUser
1703 15063 IncludeMiddleNameInSystemDisplayAndSort
1703 15063 IsShowFullContactCardSupportedAsync

Properties

IncludeMiddleNameInSystemDisplayAndSort

Gets or sets a Boolean that indicates whether the middle name of a contact is included in the DisplayName and SortName of a contact.

SystemDisplayNameOrder

Gets or sets the display name order.

SystemSortOrder

Gets or sets the sort order.

Methods

ConvertContactToVCardAsync(Contact, UInt32)

Asynchronously converts a Contact to a vCard.

ConvertContactToVCardAsync(Contact)

Asynchronously converts a Contact to a vCard.

ConvertVCardToContactAsync(IRandomAccessStreamReference)

Asynchronously converts a vCard to a Contact.

GetForUser(User)

Gets the ContactManagerForUser object for the specified user.

IsShowContactCardSupported()

Gets a Boolean value that indicates whether the ShowContactCard method is supported on the current platform.

IsShowDelayLoadedContactCardSupported()

Gets a Boolean value that indicates whether the ShowDelayLoadedContactCard method is supported on the current platform.

IsShowFullContactCardSupportedAsync()

Gets a Boolean value that indicates whether the ShowFullContactCard method is supported on the current platform.

RequestAnnotationStoreAsync(ContactAnnotationStoreAccessType)

Asynchronously requests access to the ContactAnnotationStore.

RequestStoreAsync()

Retrieves a ContactStore object that enables searching or retrieving contacts on the device.

RequestStoreAsync(ContactStoreAccessType)

Retrieves a ContactStore object that enables searching or retrieving contacts on the device.

ShowContactCard(Contact, Rect, Placement, ContactCardOptions)

Shows a contact card with the specified parameters.

ShowContactCard(Contact, Rect, Placement)

Queries the operating system for a user’s contact and shows the contact data in a contact card.

ShowContactCard(Contact, Rect)

Queries the operating system for a user’s contact and shows the contact data in a contact card.

ShowDelayLoadedContactCard(Contact, Rect, Placement, ContactCardOptions)

Shows a contact card that can be updated later if the contact does not exist in the user’s contact database.

ShowDelayLoadedContactCard(Contact, Rect, Placement)

Shows a contact card that can be updated later if the contact does not exist in the user’s contact database.

ShowFullContactCard(Contact, FullContactCardOptions)

Queries the operating system for a user’s contact and shows the contact data in a full contact card.

Applies to

See also