Share via


Contacts.PickContactAsync Method

Definition

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

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

Returns

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

Applies to