Delen via


ContactQueryDesiredFields Enum

Definition

Defines which fields must exist on a contact in order to match a search operation.

This enumeration supports a bitwise combination of its member values.

public enum class ContactQueryDesiredFields
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ContactQueryDesiredFields
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ContactQueryDesiredFields
var value = Windows.ApplicationModel.Contacts.ContactQueryDesiredFields.none
Public Enum ContactQueryDesiredFields
Inheritance
ContactQueryDesiredFields
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
contactsSystem

Fields

Name Value Description
None 0

No required fields

PhoneNumber 1

The contact must have a phone number.

EmailAddress 2

The contact must have an email address.

PostalAddress 4

The contact must have a postal address.

Remarks

Use the OR operator to combine these values together into a single bit field.

Applies to