Olvasás angol nyelven

Megosztás a következőn keresztül:


StorageItemQueryResult Class

Definition

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.

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class StorageItemQueryResult
Inheritance
Object StorageItemQueryResult
Attributes
Implements

Windows requirements

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

Remarks

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:

Properties

Folder

Gets the folder originally used to create the StorageItemQueryResult object. This folder represents the scope of the query.

Methods

ApplyNewQueryOptions(QueryOptions)

Modifies query results based on new QueryOptions.

FindStartIndexAsync(Object)

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.

GetCurrentQueryOptions()

Retrieves the query options used to determine query results.

GetItemCountAsync()

Retrieves the number of items in the set of query results.

GetItemsAsync()

Retrieves a list of all the items (files and folders) in the query results set.

GetItemsAsync(UInt32, UInt32)

Retrieves a list of items (files and folders) in a specified range.

Events

ContentsChanged

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.

OptionsChanged

Fires when the query options change.

Applies to

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

See also