Sdílet prostřednictvím


IStorageFolderQueryOperations Interface

Definition

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.

public interface class IStorageFolderQueryOperations
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3410218185, 17515, 19023, 190, 151, 117, 119, 113, 190, 82, 3)]
struct IStorageFolderQueryOperations
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3410218185, 17515, 19023, 190, 151, 117, 119, 113, 190, 82, 3)]
public interface IStorageFolderQueryOperations
Public Interface IStorageFolderQueryOperations
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Methods

AreQueryOptionsSupported(QueryOptions)

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(QueryOptions)

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(QueryOptions)

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(QueryOptions)

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, 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.

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.

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.

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.

GetIndexedStateAsync()

Retrieves a value that indicates the indexed state of the StorageFolder location associated with the query.

GetItemsAsync(UInt32, UInt32)

Retrieves a list items like files, folders, or file groups, in a specified range (shallow enumeration).

IsCommonFileQuerySupported(CommonFileQuery)

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

IsCommonFolderQuerySupported(CommonFolderQuery)

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

Applies to