ContactStore.GetContactAsync(String) メソッド

定義

指定した Id 値を持つ連絡先を表す Contact オブジェクトを取得します。

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)

パラメーター

contactId
String

Platform::String

winrt::hstring

取得する連絡先の ID

戻り値

正常に完了すると Contact オブジェクトを返す非同期操作。 非同期プログラミングを使用する場合、結果の種類は 1 つの Contact オブジェクトです。

属性

Windows の要件

アプリの機能
contactsSystem

適用対象

こちらもご覧ください