Share via


ContactStore.FindContactByIdAsync(String) Method

Definition

Retrieves the contact with the specified ID from the contact store.

public:
 virtual IAsyncOperation<StoredContact ^> ^ FindContactByIdAsync(Platform::String ^ id) = FindContactByIdAsync;
IAsyncOperation<StoredContact> FindContactByIdAsync(winrt::hstring const& id);
public IAsyncOperation<StoredContact> FindContactByIdAsync(string id);
function findContactByIdAsync(id)
Public Function FindContactByIdAsync (id As String) As IAsyncOperation(Of StoredContact)

Parameters

id
String

Platform::String

winrt::hstring

The ID of the contact to retrieve.

Returns

When this method completes, it returns a StoredContact object. If you use Asynchronous programming, the result type is StoredContact.

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

Applies to

See also