Dela via


ContactStore.GetContactListAsync(String) Method

Definition

Asynchronously gets the ContactList with the specified ID.

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

Parameters

contactListId
String

Platform::String

winrt::hstring

The ID of the ContactList to retrieve.

Returns

The ContactList with the specified ID or null if the list is not found.

Attributes

Windows requirements

App capabilities
contactsSystem

Remarks

This method throws an invalid argument exception if the contactListId is malformed.

Applies to