Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ContactStore Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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

Name Description
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

Name Description
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

Name Description
ContactChanged

Occurs when a Contact in the ContactStore has been changed.

Applies to

See also


Feedback

Was this page helpful?