Share via


ContactStore.CreateContactListAsync Method

Definition

Overloads

CreateContactListAsync(String)

Asynchronously creates a ContactList with the specified display name.

CreateContactListAsync(String, String)

Asynchronously creates a ContactList with the specified display name and user account.

CreateContactListAsync(String)

Asynchronously creates a ContactList with the specified display name.

public:
 virtual IAsyncOperation<ContactList ^> ^ CreateContactListAsync(Platform::String ^ displayName) = CreateContactListAsync;
/// [Windows.Foundation.Metadata.Overload("CreateContactListAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ContactList> CreateContactListAsync(winrt::hstring const& displayName);
[Windows.Foundation.Metadata.Overload("CreateContactListAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ContactList> CreateContactListAsync(string displayName);
function createContactListAsync(displayName)
Public Function CreateContactListAsync (displayName As String) As IAsyncOperation(Of ContactList)

Parameters

displayName
String

Platform::String

winrt::hstring

A name for the new ContactList, suitable for displaying in the user interface.

Returns

The newly created ContactList.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

CreateContactListAsync(String, String)

Asynchronously creates a ContactList with the specified display name and user account.

public:
 virtual IAsyncOperation<ContactList ^> ^ CreateContactListAsync(Platform::String ^ displayName, Platform::String ^ userDataAccountId) = CreateContactListAsync;
/// [Windows.Foundation.Metadata.Overload("CreateContactListInAccountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ContactList> CreateContactListAsync(winrt::hstring const& displayName, winrt::hstring const& userDataAccountId);
[Windows.Foundation.Metadata.Overload("CreateContactListInAccountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ContactList> CreateContactListAsync(string displayName, string userDataAccountId);
function createContactListAsync(displayName, userDataAccountId)
Public Function CreateContactListAsync (displayName As String, userDataAccountId As String) As IAsyncOperation(Of ContactList)

Parameters

displayName
String

Platform::String

winrt::hstring

A name for the new ContactList, suitable for displaying in the user interface.

userDataAccountId
String

Platform::String

winrt::hstring

The ID for the UserDataAccount to use when creating the ContactList.

Returns

The newly created ContactList.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to