Share via


IContacts.PickContactAsync Method

Definition

Opens the operating system's default UI for picking a contact from the device.

public:
 System::Threading::Tasks::Task<Microsoft::Maui::ApplicationModel::Communication::Contact ^> ^ PickContactAsync();
public System.Threading.Tasks.Task<Microsoft.Maui.ApplicationModel.Communication.Contact?> PickContactAsync ();
abstract member PickContactAsync : unit -> System.Threading.Tasks.Task<Microsoft.Maui.ApplicationModel.Communication.Contact>
Public Function PickContactAsync () As Task(Of Contact)

Returns

A single contact, or null if the user cancelled the operation.

Applies to