This topic has not yet been rated - Rate this topic

IStorageFolderQueryOperations interface

Applies to Windows only

Provides methods to create search queries and retrieve files from a folder. This interface is implemented by StorageFolder objects, which can represent file system folders, libraries, or virtual folders that are automatically generated when queries are created using group-based CommonFolderQuery values like GroupByAlbum.

Syntax


public interface IStorageFolderQueryOperations

Attributes

[Version(0x06020000)]

Members

The IStorageFolderQueryOperations interface has these types of members:

Methods

The IStorageFolderQueryOperations interface has these methods. It also inherits methods from the Object class.

MethodDescription
AreQueryOptionsSupported Verifies whether the folder supports the specified search query options (returns true or false).
CreateFileQuery() Retrieves an object for enumerating the files in a storage location and subscribing to events that fire when the contents of the storage location change.
CreateFileQuery(CommonFileQuery) Retrieves an object with the specified options for enumerating the storage location in a folder and subscribing to events that fire when the contents of the storage location change.
CreateFileQueryWithOptions Retrieves an object with the specified options for enumerating the files in a storage location and subscribing to events that fire when the contents of the storage location change.
CreateFolderQuery() Retrieves an object for enumerating folders in a storage location and subscribing to events that fire when the contents of the storage location change.
CreateFolderQuery(CommonFolderQuery) Retrieves an object with the specified options for enumerating folders in a storage location and subscribing to events that fire when the contents of the storage location change.
CreateFolderQueryWithOptions Retrieves an object with the specified options for enumerating folders in a storage location and subscribing to events that fire when the contents of the storage location change.
CreateItemQuery Retrieves an object for performing shallow enumerations of the files and folders in a storage location. An app can use the object to enumerate the items in a storage location and subscribe to events that fire when the contents of the storage location change.
CreateItemQueryWithOptions Retrieves an object with the specified options for enumerating the files and folders in a storage location and subscribing to events that fire when the contents of the storage location change.
GetFilesAsync(CommonFileQuery) Retrieves a list of files based on the specified query (shallow enumeration). This returns a snapshot of the files at a point in time and does not allow you to keep track of changes through events.
GetFilesAsync(CommonFileQuery, UInt32, UInt32) Retrieves a list of files in a specified range that are based on the specified file query. This returns a snapshot of the files at a point in time and does not allow you to keep track of changes through events.
GetFoldersAsync(CommonFolderQuery) Retrieves a list of folders and file groups based on a specified folder query. This returns a snapshot of the folders or file groups at a point in time and does not allow you to keep track of changes through events.
GetFoldersAsync(CommonFolderQuery, UInt32, UInt32) Asynchronously retrieves a range of folders in this folder based on a folder query. This returns a snapshot of the folders or file groups at a point in time and does not allow you to keep track of changes through events.
GetIndexedStateAsync Retrieves a value that indicates the indexed state of the StorageFolder location associated with the query.
GetItemsAsync Retrieves a list items like files, folders, or file groups, in a specified range (shallow enumeration).
IsCommonFileQuerySupported Verifies whether this folder supports the specified file query (returns true or false).
IsCommonFolderQuerySupported Verifies whether this folder supports the specified folder query (returns true or false).

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.