ContactStore.CreateOrOpenAsync(ContactStoreSystemAccessMode, ContactStoreApplicationAccessMode) method

Applies to Windows Phone only

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

Syntax


public static IAsyncOperation<ContactStore> CreateOrOpenAsync(
  ContactStoreSystemAccessMode access, 
  ContactStoreApplicationAccessMode sharing
)

Parameters

access

Type: ContactStoreSystemAccessMode

Whether contacts in the store can be modified by the phone experience or only by the app that created it.

sharing

Type: ContactStoreApplicationAccessMode

Whether all properties for contacts in the store are visible to other applications or just the description and display picture.

Return value

Type: IAsyncOperation<ContactStore>

When this method completes, it returns a ContactStore object representing the app's custom contact store.

Requirements

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft