Contact​Query​Options Contact​Query​Options Contact​Query​Options Class

Definition

Represents query options for retrieving contacts using CreateContactQuery.

public sealed class ContactQueryOptions : IContactQueryOptionspublic sealed class ContactQueryOptions : IContactQueryOptionsPublic NotInheritable Class ContactQueryOptions Implements IContactQueryOptions
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Constructors

ContactQueryOptions() ContactQueryOptions() ContactQueryOptions()

Initializes a new instance of the ContactQueryOptions class.

public ContactQueryOptions()public ContactQueryOptions()Public Sub New()
Attributes
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Properties

DesiredFields DesiredFields DesiredFields

Gets or sets the list of properties that should be returned with each contact.

public IVector<string> DesiredFields { get; }public IVector<string> DesiredFields { get; }Public ReadOnly Property DesiredFields As IVector<string>
Value

The list of properties that should be returned with each contact.

Attributes
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

The default set of fields are those that are properties of the StoredContact class. Additional field names should be specified using one of the properties of KnownContactProperties class.

OrderBy OrderBy OrderBy

Gets or sets the field used to order the contact query results.

public ContactQueryResultOrdering OrderBy { get; set; }public ContactQueryResultOrdering OrderBy { get; set; }Public ReadWrite Property OrderBy As ContactQueryResultOrdering
Value
ContactQueryResultOrdering ContactQueryResultOrdering ContactQueryResultOrdering

The field used to order the contact query results, as a value of the enumeration.

Attributes
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

Generally, apps should use the SystemDefault ordering value. This will cause the results list to be ordered the same as when they are displayed in the built-in phone experience.