-api-id | -api-type |
---|---|
P:Windows.ApplicationModel.Contacts.ContactPicker.DesiredFields |
winrt property |
Sets the contact fields your app is interested in.
Note
This property is no longer available starting with Windows 10.
An array of strings that represent the field names your app is interested in.
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.
contactsSystem