LocalContentSuggestionSettings.AqsFilter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.