Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StorageItemQueryResult class

Applies to Windows only

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.

Syntax


var storageItemQueryResult = storageFolder.createItemQuery();

Attributes

[Version(0x06020000)]

Members

The StorageItemQueryResult class has these types of members:

Events

The StorageItemQueryResult class has these events.

EventDescription
ContentsChanged
OptionsChanged

 

Methods

The StorageItemQueryResult class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
ApplyNewQueryOptions
FindStartIndexAsync
GetCurrentQueryOptions
GetItemCountAsync
GetItemsAsync()
GetItemsAsync(UInt32, UInt32)

 

Properties

The StorageItemQueryResult class has these properties.

PropertyAccess typeDescription

Folder

Read-only

 

Remarks

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:

For related code examples, see storageFileQueryResult, storageFolderQueryResult, the Folder enumeration sample, and the File system search sample.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

storageItemQueryResult class
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

 

 

Show:
© 2014 Microsoft