Share via


ContactQueryOptions.DesiredFields Property

Definition

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

public:
 property IVector<Platform::String ^> ^ DesiredFields { IVector<Platform::String ^> ^ get(); };
IVector<winrt::hstring> DesiredFields();
public IList<string> DesiredFields { get; }
var iVector = contactQueryOptions.desiredFields;
Public ReadOnly Property DesiredFields As IList(Of String)

Property Value

IVector<String>

IList<String>

IVector<Platform::String>

IVector<winrt::hstring>

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

Windows requirements

App 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.

Applies to