ContactStore.CreateOrOpenAsync Method
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.
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
- CreateOrOpenAsync(ContactStoreSystemAccessMode, ContactStoreApplicationAccessMode)
- Asynchronous programming
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.
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]
|