ContactPicker.PickMultipleContactsAsync ContactPicker.PickMultipleContactsAsync ContactPicker.PickMultipleContactsAsync ContactPicker.PickMultipleContactsAsync ContactPicker.PickMultipleContactsAsync Method

Definition

Launches the Contact Picker for selecting multiple contacts.

Note

This method is no longer available starting with Windows 10.

public : IAsyncOperation<IVectorView<ContactInformation>> PickMultipleContactsAsync()
IAsyncOperation<IVectorView<ContactInformation>> PickMultipleContactsAsync() const;
public IAsyncOperation<IReadOnlyList<ContactInformation>> PickMultipleContactsAsync()
Public Function PickMultipleContactsAsync() As IAsyncOperation<IReadOnlyList<ContactInformation>>(Of IVectorView)
Windows.ApplicationModel.Contacts.ContactPicker.pickMultipleContactsAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IReadOnlyList<ContactInformation>> IAsyncOperation<IReadOnlyList<ContactInformation>> IAsyncOperation<IReadOnlyList<ContactInformation>>

The operation that launches the contact picker.

Additional features and requirements

Capabilities
contactsSystem

Examples

This example demonstrates how to use PickMultipleContactsAsync to get multiple contacts.

function selectContacts() {
    var picker = Windows.ApplicationModel.Contacts.ContactPicker();
    picker.commitButtonText = "Select";
    picker.pickMultipleContactsAsync().then(function (contacts) {
        contacts.forEach(function (contact) {
            var contactElement = document.createElement("div");
            contactElement.innerText = contact.name;
        });
    });
}

Remarks

To pick only a single contact, use PickSingleContactAsync.

Use the SelectionMode property to control whether your app receives all of a contact's information, or just specific fields.

See also