Share via


ContactStore Class

Definition

Represents the custom contact store for a Windows Phone app.

public ref class ContactStore sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactStore final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 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 Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced in v1.0)
App capabilities
ID_CAP_CONTACTS [Windows Phone]

Properties

RevisionNumber

Gets the revision number for the contact store.

Methods

CreateContactQuery()

Creates a contact query with the default options.

CreateContactQuery(ContactQueryOptions)

Creates a contact query with the custom options.

CreateMeContactAsync(String)

Establishes that the specified contact represents the current signed-in user of the device.

CreateOrOpenAsync()

Opens the app's custom contact store, creating the store with the default options if it does not already exist.

CreateOrOpenAsync(ContactStoreSystemAccessMode, ContactStoreApplicationAccessMode)

Opens the app's custom contact store, creating the store with the specified options if it does not already exist.

DeleteAsync()

Deletes the app's custom contact store.

DeleteContactAsync(String)

Deletes the contact with the specified ID from the contact store.

FindContactByIdAsync(String)

Retrieves the contact with the specified ID from the contact store.

FindContactByRemoteIdAsync(String)

Retrieves the contact with the specified remote ID from the contact store.

GetChangesAsync(UInt64)

Gets the list of changes to the contact store associated with the provided revision number.

LoadExtendedPropertiesAsync()

Loads the extended properties for the app's custom contact store.

SaveExtendedPropertiesAsync(IMapView<String,Object>)

Saves the provided list of name/value pairs to the custom contact store's extended properties.

Applies to

See also