Windows Dev Center

IStorageFolderQueryOperations.IsCommonFolderQuerySupported method

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

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

Syntax


bool IsCommonFolderQuerySupported(
  CommonFolderQuery query
)

Parameters

query

Type: CommonFolderQuery

The folder query to test.

Return value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

True if the folder supports the specified folder query; 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:

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Search
Windows::Storage::Search [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows 10 Mobile

Namespace

Windows.Storage.Search
Windows::Storage::Search [C++]

Metadata

Windows.winmd

See also

IStorageFolderQueryOperations

 

 

Show:
© 2015 Microsoft