Share via


IStorageFolderQueryOperations.IsCommonFileQuerySupported Method

Definition

Verifies whether this folder supports the specified file query (returns true or false).

public:
 bool IsCommonFileQuerySupported(CommonFileQuery query);
bool IsCommonFileQuerySupported(CommonFileQuery const& query);
public bool IsCommonFileQuerySupported(CommonFileQuery query);
function isCommonFileQuerySupported(query)
Public Function IsCommonFileQuerySupported (query As CommonFileQuery) As Boolean

Parameters

query
CommonFileQuery

The file query to test.

Returns

Boolean

bool

True if the folder supports the specified file query; otherwise false.

Remarks

Not all locations support all query options. Because files 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