Share via


ContactList.GetContactAsync(String) Method

Definition

Asynchronously retrieves the specified Contact object from the ContactList.

public:
 virtual IAsyncOperation<Contact ^> ^ GetContactAsync(Platform::String ^ contactId) = GetContactAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<Contact> GetContactAsync(winrt::hstring const& contactId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<Contact> GetContactAsync(string contactId);
function getContactAsync(contactId)
Public Function GetContactAsync (contactId As String) As IAsyncOperation(Of Contact)

Parameters

contactId
String

Platform::String

winrt::hstring

The string that identifies the Contact to return.

Returns

The Contact identified by the contactId parameter.

Attributes

Windows requirements

App capabilities
contactsSystem

Applies to