ContactStore.FindContactsAsync メソッド

定義

オーバーロード

FindContactsAsync()

連絡先ストア内のすべての連絡先の一覧を取得します。

FindContactsAsync(String)

指定された検索テキストに基づいて Contact オブジェクトの一覧を取得します。

FindContactsAsync()

連絡先ストア内のすべての連絡先の一覧を取得します。

public:
 virtual IAsyncOperation<IVectorView<Contact ^> ^> ^ FindContactsAsync() = FindContactsAsync;
/// [Windows.Foundation.Metadata.Overload("FindContactsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<Contact>> FindContactsAsync();
[Windows.Foundation.Metadata.Overload("FindContactsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<Contact>> FindContactsAsync();
function findContactsAsync()
Public Function FindContactsAsync () As IAsyncOperation(Of IReadOnlyList(Of Contact))

戻り値

連絡先ストア内のすべての Contact オブジェクトの一覧を返す非同期操作。 非同期プログラミングを使用する場合、結果の種類は Contact アイテムの読み取り専用リスト/ベクターです。 ( IVectorView<Contact> for C++ の API、 IReadOnlyList for .NET の API を使用できます)。

属性

Windows の要件

アプリの機能
contactsSystem

こちらもご覧ください

適用対象

FindContactsAsync(String)

指定された検索テキストに基づいて Contact オブジェクトの一覧を取得します。

public:
 virtual IAsyncOperation<IVectorView<Contact ^> ^> ^ FindContactsAsync(Platform::String ^ searchText) = FindContactsAsync;
/// [Windows.Foundation.Metadata.Overload("FindContactsWithSearchTextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<Contact>> FindContactsAsync(winrt::hstring const& searchText);
[Windows.Foundation.Metadata.Overload("FindContactsWithSearchTextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<Contact>> FindContactsAsync(string searchText);
function findContactsAsync(searchText)
Public Function FindContactsAsync (searchText As String) As IAsyncOperation(Of IReadOnlyList(Of Contact))

パラメーター

searchText
String

Platform::String

winrt::hstring

操作の検索文字列。 クエリは、連絡先の名前 (名前)、電子メール アドレス (電子メール の値)、または電話番号 (電話 の値) の照合を試みます。

戻り値

正常に完了した場合に、検索でフィルター処理された連絡先の一覧を返す非同期操作。 非同期プログラミングを使用する場合、結果の種類は Contact アイテムの読み取り専用リスト/ベクターです。 ( IVectorView<Contact> for C++ の API、 IReadOnlyList for .NET の API を使用できます)。

属性

Windows の要件

アプリの機能
contactsSystem

こちらもご覧ください

適用対象