Contacts.PickContactAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.