ContactAnnotationStore.FindContactIdsByPhoneNumberAsync(String) Method

Definition

Gets a list of Id values based on Contact objects with a specified phone number.

public:
 virtual IAsyncOperation<IVectorView<Platform::String ^> ^> ^ FindContactIdsByPhoneNumberAsync(Platform::String ^ phoneNumber) = FindContactIdsByPhoneNumberAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<winrt::hstring>> FindContactIdsByPhoneNumberAsync(winrt::hstring const& phoneNumber);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<string>> FindContactIdsByPhoneNumberAsync(string phoneNumber);
function findContactIdsByPhoneNumberAsync(phoneNumber)
Public Function FindContactIdsByPhoneNumberAsync (phoneNumber As String) As IAsyncOperation(Of IReadOnlyList(Of String))

Parameters

phoneNumber
String

Platform::String

winrt::hstring

The phone number used to find the contact Id values.

Returns

The list of Contact objects containing the specified phoneNumber.

Attributes

Windows requirements

App capabilities
contactsSystem

Applies to