ContactStore.GetContactAsync(String) Method

Definition

Retrieves a Contact object representing the contact with the specified Id value.

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 Id of the contact to be retrieved.

Returns

An asynchronous operation that returns a Contact object on successful completion. If you use Asynchronous programming, the result type is a single Contact object.

Attributes

Windows requirements

App capabilities
contactsSystem

Applies to

See also