-api-id | -api-type |
---|---|
T:Windows.Storage.Search.StorageItemQueryResult |
winrt class |
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.
Note
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.
StorageItemQueryResult.GetItemsAsync methods, Windows.Storage.StorageFolder.CreateItemQuery methods, Windows.Storage.StorageFolder.CreateItemQueryWithOptions method, Windows.Storage.BulkAccess.FolderInformation.CreateItemQuery methods, Windows.Storage.BulkAccess.FolderInformation.CreateItemQueryWithOptions method