Share via


LocalContentSuggestionSettings.AqsFilter Property

Definition

An Advanced Query Syntax (AQS) string that limits the types and kinds of files that are used to provide suggestions. If no Advanced Query Syntax (AQS) string is specified, suggestions are provided from all local files in locations specified by the Locations property.

public:
 property Platform::String ^ AqsFilter { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring AqsFilter();

void AqsFilter(winrt::hstring value);
public string AqsFilter { get; set; }
var string = localContentSuggestionSettings.aqsFilter;
localContentSuggestionSettings.aqsFilter = string;
Public Property AqsFilter As String

Property Value

String

Platform::String

winrt::hstring

The Advanced Query Syntax (AQS) string that is used to refine which local, indexed files are used to provide suggestions. By default, this string is empty.

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

If local suggestions are disabled, this property has no effect. Set LocalContentSuggestionSettings.Enabled property to true to display local suggestions in the search pane.

Use an AQS filter to help keep local suggestions relevant. For example, if your app is a video player, you may want to limit suggestions to videos or a specific file type.

Applies to

See also