Item Query Result Class
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
Object IInspectable StorageItemQueryResult
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
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 system search sample.
Gets the folder originally used to create the StorageItemQueryResult object. This folder represents the scope of the query.
Modifies query results based on new QueryOptions.
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.
Retrieves the query options used to determine query results.
Retrieves the number of items in the set of query results.
Retrieves a list of all the items (files and folders) in the query results set.
Retrieves a list of items (files and folders) in a specified range.
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.
Fires when the query options change.
Submit and view feedback for