Share via


ContactStore Class

Definition

Represents a database that contains contacts.

public ref class ContactStore sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactStore final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactStore
Public NotInheritable Class ContactStore
Inheritance
Object Platform::Object IInspectable ContactStore
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

To get a ContactStore object, call the static utility method ContactManager.RequestStoreAsync.

Version history

Windows version SDK version Value added
1709 16299 GetChangeTracker

Properties

AggregateContactManager

Gets a contact manager that provides functionality for linking individual (raw) contacts across services together into a single aggregate contact.

ChangeTracker

Gets the ContactChangeTracker which provides functionality for monitoring changes to Contact objects in the ContactStore.

Methods

CreateContactListAsync(String, String)

Asynchronously creates a ContactList with the specified display name and user account.

CreateContactListAsync(String)

Asynchronously creates a ContactList with the specified display name.

FindContactListsAsync()

Asynchronously returns the list of ContactList objects.

FindContactsAsync()

Retrieves the list of all contacts in the contact store.

FindContactsAsync(String)

Retrieves a list of Contact objects based on the supplied search text.

GetChangeTracker(String)

Gets a ContactChangeTracker that provides functionality for monitoring changes to Contact objects in the ContactStore.

GetContactAsync(String)

Retrieves a Contact object representing the contact with the specified Id value.

GetContactListAsync(String)

Asynchronously gets the ContactList with the specified ID.

GetContactReader()

Creates and returns a ContactReader for the ContactStore.

GetContactReader(ContactQueryOptions)

Creates and returns a ContactReader for the ContactStore with the specified ContactQueryOptions.

GetMeContactAsync()

Asynchronously gets the Contact object that represents the current user.

Events

ContactChanged

Occurs when a Contact in the ContactStore has been changed.

Applies to

See also