StorageItemQueryResult Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to the results of a query that lists all items including files and folders (or file groups) in the folder being queried (which is represented by a StorageFolder). You can use storageItemQueryResult to enumerate the files and folders in that StorageFolder.
public ref class StorageItemQueryResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class StorageItemQueryResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class StorageItemQueryResult
Public NotInheritable Class StorageItemQueryResult
- Inheritance
- Attributes
- Implements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Megjegyzés
Although it's not attributed with marshalling_behavior(agile)
, this class can be treated as agile. For more info, see Threading and Marshaling (C++/CX).
You can get a storageItemQueryResult object by calling the following methods from a StorageFolder or a FolderInformation object:
- StorageFolder.CreateItemQuery methods
- StorageFolder.CreateItemQueryWithOptions method
- FolderInformation.CreateItemQuery methods
- FolderInformation.CreateItemQueryWithOptions method For related code examples, see storageFileQueryResult, storageFolderQueryResult, the Folder enumeration sample, and the File search sample.
Folder |
Gets the folder originally used to create the StorageItemQueryResult object. This folder represents the scope of the query. |
Apply |
Modifies query results based on new QueryOptions. |
Find |
Retrieves the index of the item from the query results that most closely matches the specified property value. The property that is matched is determined by the first SortEntry of the QueryOptions.SortOrder list. |
Get |
Retrieves the query options used to determine query results. |
Get |
Retrieves the number of items in the set of query results. |
Get |
Retrieves a list of all the items (files and folders) in the query results set. |
Get |
Retrieves a list of items (files and folders) in a specified range. |
Contents |
Fires when an item is added to, deleted from, or modified in the folder being queried. This event only fires after GetItemsAsync has been called at least once. |
Options |
Fires when the query options change. |
Termék | Verziók |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |