Share via


IStorageFolderQueryOperations.IsCommonFileQuerySupported 方法

定義

確認此資料夾是否支援指定的檔案查詢 (傳回 true 或 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

參數

query
CommonFileQuery

要測試的檔案查詢。

傳回

Boolean

bool

如果資料夾支援指定的檔案查詢,則為 True;否則為 false。

備註

並非所有位置都支援所有查詢選項。 因為檔案可由選擇器擷取,而且您無法控制位置,所以您可以使用這個方法來判斷位置是否支援特定的查詢選項。

文件庫或 HomeGroup 中的資料夾支援所有查詢選項。 其他位置僅支援下列選項:

適用於