Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.05 KB

contactpicker_desiredfields.md

File metadata and controls

33 lines (22 loc) · 1.05 KB
-api-id -api-type
P:Windows.ApplicationModel.Contacts.ContactPicker.DesiredFields
winrt property

Windows.ApplicationModel.Contacts.ContactPicker.DesiredFields

-description

Sets the contact fields your app is interested in.

Note

This property is no longer available starting with Windows 10.

-property-value

An array of strings that represent the field names your app is interested in.

-remarks

If you choose only one field with this method, a contact is considered a match if it has that field. If you choose multiple fields, a contact is considered a match if it has any of the fields.

When selecting fields, list them in order of preference. For example, if you want both phone numbers and email addresses, but prefer phone numbers, put the PhoneNumber field before the Email field.

To specify a specific field, use the KnownContactField class.

-examples

-see-also

-capabilities

contactsSystem