Share via


ContactQueryOptions.DesiredFields Property

Definition

Gets or sets the desired fields a contact must have to match the query.

public:
 property ContactQueryDesiredFields DesiredFields { ContactQueryDesiredFields get(); void set(ContactQueryDesiredFields value); };
ContactQueryDesiredFields DesiredFields();

void DesiredFields(ContactQueryDesiredFields value);
public ContactQueryDesiredFields DesiredFields { get; set; }
var contactQueryDesiredFields = contactQueryOptions.desiredFields;
contactQueryOptions.desiredFields = contactQueryDesiredFields;
Public Property DesiredFields As ContactQueryDesiredFields

Property Value

The desired fields a contact must have to match the query.

Windows requirements

App capabilities
contactsSystem

Remarks

You can specify multiple fields by using the OR operator to combine values from the ContactQueryDesiredFields enum. The query results will return contacts that contain one or more of the desired fields.

Applies to