Share via


ContactStore.FindContactsAsync Method

Definition

Overloads

FindContactsAsync()

Retrieves the list of all contacts in the contact store.

FindContactsAsync(String)

Retrieves a list of Contact objects based on the supplied search text.

FindContactsAsync()

Retrieves the list of all contacts in the contact store.

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))

Returns

An asynchronous operation that returns a list of all Contact objects in the contact store. If you use Asynchronous programming, the result type is a read-only list/vector of Contact items. (You can use APIs of IVectorView<Contact> for C++, APIs of IReadOnlyList for .NET.)

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

FindContactsAsync(String)

Retrieves a list of Contact objects based on the supplied search text.

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))

Parameters

searchText
String

Platform::String

winrt::hstring

The search string for the operation. The query will attempt to match the name (Name), email address (Emails values), or phone number (Phones values) of a contact.

Returns

An asynchronous operation that returns a search-filtered list of contacts on successful completion. If you use Asynchronous programming, the result type is a read-only list/vector of Contact items. (You can use APIs of IVectorView<Contact> for C++, APIs of IReadOnlyList for .NET.)

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to