FilterKind Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the kind of filter to use when searching for contacts.

Namespace:  Microsoft.Phone.UserData
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Enumeration FilterKind
public enum FilterKind
<object property="enumerationValue" .../>

Members

Member name Description
None A filter that returns all contacts.
PinnedToStart A filter that returns all contacts that are pinned to the Start screen.
EmailAddress A filter that returns contacts by email address.
PhoneNumber A filter that returns contacts by phone number.
DisplayName A filter that returns contacts by display name.
Identifier A filter that returns contacts by local identifier.

Remarks

The FilterKind type is used to specify the kind of filter to use when searching for contacts by using the SearchAsync method. The default value is None. For more information about how the filter is used to match contacts, see Contact filtering and matching for Windows Phone 8.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_CONTACTS

Windows Phone 8

ID_CAP_APPOINTMENTS

Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

Microsoft.Phone.UserData Namespace

Contact

Contacts

Other Resources

Contacts and Calendar for Windows Phone 8