Windows Dev Center

ContactManager class

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

Syntax


public ref class ContactManager abstract sealed 

Members

The ContactManager class has these types of members:

Methods

The ContactManager class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
ConvertContactToVCardAsync Overloaded.
ConvertVCardToContactAsync Asynchronously converts a vCard to a Contact.
IsShowContactCardSupported Gets a Boolean value indicating if the ShowContactCard method is supported on the current platform.
IsShowDelayLoadedContactCardSupported Gets a Boolean value indicating if the ShowDelayLoadedContactCard method is supported on the current platform.
RequestAnnotationStoreAsync 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) Queries the operating system for a user’s contact and shows the contact data in a contact card.
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,Placement,ContactCardOptions) Shows a contact card with the specified parameters.
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.
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.
ShowFullContactCard Queries the operating system for a user’s contact and shows the contact data in a full contact card.

 

Properties

The ContactManager class has these properties.

PropertyAccess typeDescription

SystemDisplayNameOrder

Read/writeGets or puts the display name order.

SystemSortOrder

Read/writeGets or puts the sort order.

 

Remarks

All relevant methods of this class are static methods.

For info about how to manage contacts, see Managing contact cards (XAML) and Managing contact cards (HTML).

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

See also

Contact manager API sample
IContactManagerInterop
Object

 

 

Show:
© 2015 Microsoft