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.

StorageFolderQueryResult class

Applies to Windows only

Provides access to the results of a query that lists the folder (or file groups) in the folder being queried (which is represented by a storageFolder). You can use a storageFolderQueryResult to enumerate folders or file groups in that folder.

Syntax


public ref class StorageFolderQueryResult sealed : IStorageQueryResultBase

Attributes

[Version(0x06020000)]

Members

The StorageFolderQueryResult class has these types of members:

Events

The StorageFolderQueryResult class has these events.

EventDescription
ContentsChanged
OptionsChanged

 

Methods

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

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

 

Properties

The StorageFolderQueryResult 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 storageFolderQueryResult object by calling the following methods from a storageFolder or a folderInformation object:

For more code examples that show you how to use storageFolderQueryResult objects, see the Folder enumeration sample.

To get a StorageFolderQueryResult object to enumerate the folders or file groups in a location, you must get a storageFolder that represents the location and then create a folder query

Examples

This example demonstrates how to get a list folders (or file groups) from a storageFolderQueryResult object.

No code example is currently available or this language may not be supported.

The queryResult variable gets the storageFolderQueryResult that is used to retrieve file groups (or folders) that meet the criteria of the query.

Note  You need the Pictures library capability to access the library using KnownFolders.PicturesLibrary. To learn more about capabilities and file access, see File access and permissions in file picker.

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

Windows.Storage.storageFolder.createFolderQuery methods
Windows.Storage.storageFolder.createFolderQueryWithOptions method
Windows.Storage.BulkAccess.folderInformation.createFolderQuery methods
Windows.Storage.BulkAccess.folderInformation.createFolderQueryWithOptions method

 

 

Show:
© 2014 Microsoft