ContactQueryOptions ContactQueryOptions ContactQueryOptions ContactQueryOptions Class

Represents query options for retrieving contacts using CreateContactQuery(ContactQueryOptions).

Syntax

Declaration

public sealed class ContactQueryOptionspublic sealed class ContactQueryOptionsPublic NotInheritable Class ContactQueryOptionspublic sealed class ContactQueryOptions

Constructors summary

Initializes a new instance of the ContactQueryOptions class.

Properties summary

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

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

Constructors

  • ContactQueryOptions()
    ContactQueryOptions()
    ContactQueryOptions()
    ContactQueryOptions()

    Initializes a new instance of the ContactQueryOptions class.

    public ContactQueryOptions()public New()Public Sub New()public ContactQueryOptions()

Properties

  • DesiredFields
    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>public IVector<string> DesiredFields { get; }

    Property Value

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

    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
    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 ContactQueryResultOrderingpublic ContactQueryResultOrdering OrderBy { get; set; }

    Property Value

    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.

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Capabilities

ID_CAP_CONTACTS [Windows Phone]

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Phone.PersonalInformation.dll