Dela via


IStorageFolderQueryOperations.AreQueryOptionsSupported(QueryOptions) Method

Definition

Verifies whether the folder supports the specified search query options (returns true or false).

public:
 bool AreQueryOptionsSupported(QueryOptions ^ queryOptions);
bool AreQueryOptionsSupported(QueryOptions const& queryOptions);
public bool AreQueryOptionsSupported(QueryOptions queryOptions);
function areQueryOptionsSupported(queryOptions)
Public Function AreQueryOptionsSupported (queryOptions As QueryOptions) As Boolean

Parameters

queryOptions
QueryOptions

The search query options to test.

Returns

Boolean

bool

True if the folder supports the specified search query options; otherwise false.

Remarks

Not all locations support all query options. Because folders can be retrieved by the picker and you can't control the location, you can use this method to determine whether the location supports a particular query option.

Folders in a library or the HomeGroup support all query options. Other locations only support the following options:

Applies to