Windows Dev Center

ContactStore.CreateOrOpenAsync() method

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

Syntax


public static IAsyncOperation<ContactStore> CreateOrOpenAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<ContactStore>

When this method completes, it returns a ContactStore object representing the app's custom contact store. If you use Asynchronous programming, the result type is ContactStore.

Remarks

When this method is used to create the custom contact store, the default values of ReadOnly for ContactStoreSystemAccessMode and LimitedReadOnly for ContactStoreApplicationAccessMode are used.

Requirements (Windows 10 device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Capabilities

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

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.WinMD

Capabilities

ID_CAP_CONTACTS [Windows Phone]

See also

ContactStore
CreateOrOpenAsync(ContactStoreSystemAccessMode, ContactStoreApplicationAccessMode)
Asynchronous programming

 

 

Show:
© 2015 Microsoft