此页面有用吗?
您对此内容的反馈非常重要。 请告诉我们您的想法。
更多反馈?
1500 个剩余字符
MSDN Library
信息
您所需的主题如下所示。但此主题未包含在此库中。

IStorageFolderQueryOperations Interface

提供方法以创建搜索查询和从文件夹检索文件。此接口由 StorageFolder 对象实现,这些对象可以表示使用基于组的 CommonFolderQuery 值(例如 GroupByAlbum)创建查询时,自动生成的文件系统文件夹、库或虚拟文件夹。

语法


public interface IStorageFolderQueryOperations

特性

[Version(0x06020000)]

成员

IStorageFolderQueryOperations接口 具有这些类型的成员:

方法

The IStorageFolderQueryOperations 接口 具有这些方法。 它还继承方法于Object 类.

方法说明
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).

 

备注

Windows Phone 8

此 API 不实现,但是调用时会引发异常。请参见 Windows Phone 运行时 API

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8 [未实现,请参见备注]

命名空间

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

元数据

Windows.winmd

 

 

显示:
© 2015 Microsoft