ContactStore.CreateOrOpenAsync Method

Definition

Overloads

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.

CreateOrOpenAsync()

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

public:
 static IAsyncOperation<ContactStore ^> ^ CreateOrOpenAsync();
/// [Windows.Foundation.Metadata.Overload("CreateOrOpenAsync")]
 static IAsyncOperation<ContactStore> CreateOrOpenAsync();
[Windows.Foundation.Metadata.Overload("CreateOrOpenAsync")]
public static IAsyncOperation<ContactStore> CreateOrOpenAsync();
function createOrOpenAsync()
Public Shared Function CreateOrOpenAsync () As IAsyncOperation(Of ContactStore)

Returns

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.

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

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.

See also

Applies to

CreateOrOpenAsync(ContactStoreSystemAccessMode, ContactStoreApplicationAccessMode)

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

public:
 static IAsyncOperation<ContactStore ^> ^ CreateOrOpenAsync(ContactStoreSystemAccessMode access, ContactStoreApplicationAccessMode sharing);
/// [Windows.Foundation.Metadata.Overload("CreateOrOpenWithOptionsAsync")]
 static IAsyncOperation<ContactStore> CreateOrOpenAsync(ContactStoreSystemAccessMode const& access, ContactStoreApplicationAccessMode const& sharing);
[Windows.Foundation.Metadata.Overload("CreateOrOpenWithOptionsAsync")]
public static IAsyncOperation<ContactStore> CreateOrOpenAsync(ContactStoreSystemAccessMode access, ContactStoreApplicationAccessMode sharing);
function createOrOpenAsync(access, sharing)
Public Shared Function CreateOrOpenAsync (access As ContactStoreSystemAccessMode, sharing As ContactStoreApplicationAccessMode) As IAsyncOperation(Of ContactStore)

Parameters

access
ContactStoreSystemAccessMode

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

sharing
ContactStoreApplicationAccessMode

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

Returns

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.

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

See also

Applies to