QueryOptions.ApplicationSearchFilter 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.
Gets or sets an application-defined Advanced Query Syntax (AQS) string for filtering files by keywords or properties. This property is combined with the UserSearchFilter to create the query's search filter.
public:
property Platform::String ^ ApplicationSearchFilter { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring ApplicationSearchFilter();
void ApplicationSearchFilter(winrt::hstring value);
public string ApplicationSearchFilter { get; set; }
var string = queryOptions.applicationSearchFilter;
queryOptions.applicationSearchFilter = string;
Public Property ApplicationSearchFilter As String
Property Value
A simple keyword, or a string that conforms to Advanced Query Syntax (AQS). For more information, see Using Advanced Query Syntax Programmatically.
Remarks
The application search filter should always use locale-invariant Advanced Query Syntax (AQS) syntax (such as System.FileName instead of "filename" (because the term "filename" that is associated with the property System.FileName is localized differently in different languages). This will ensure that the query returns the expected results on systems with non-English locales. Windows builds the search query by combining this property with the UserSearchFilter property.