LocalContentSuggestionSettings.PropertiesToMatch | propertiesToMatch property

Applies to Windows only

A list of the file properties whose values are used to provide suggestions from local files. If the list is empty, all of the file properties that are available for suggestions are used.

Syntax


var propertiesToMatch = localContentSuggestionSettings.propertiesToMatch;

Property value

Type: IVector<String> [JavaScript/C++] | System.Collections.Generic.IList<String> [.NET]

The list of the file properties that are used to provide suggestions from local files. By default, this list is empty and all of the file properties that are available for suggestions are used.

Remarks

If local suggestions are disabled, this property has no effect.

Adding properties to this list limits local suggestions to the values of the specified properties for local, indexed files. For example, if you want to limit suggestions to musical artists, you would append the "System.Music.AlbumArtist" (Album artists) or the "System.Music.Artist" (Contributing artists) property to the PropertiesToMatch list.

Adding properties to this list limits local suggestions to local, indexed files that have the listed properties.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.winmd

See also

Access to user resources using the Windows Runtime
Quickstart: Adding search
Search contract sample
Reference
Object class
LocalContentSuggestionSettings class
LocalContentSuggestionSettings.Enabled
SearchPane.SetLocalContentSuggestionSettings

 

 

Show:
© 2014 Microsoft