StorageFolder.GetItemsAsync | getItemsAsync methods

Gets the files and subfolders in the current folder.

Overload list

MethodDescription
GetItemsAsync() Gets the files and subfolders in the current folder.
GetItemsAsync(UInt32, UInt32) Gets an index-based range of files and folders from the list of all files and subfolders in the current folder.

Remarks

The following table lists methods of the StorageFolder class that get a list of files and folders. The table identifies shallow queries that only return items from the current folder, and deep queries that return items from the current folder and from its subfolders.

To get deep query results from a folder that's not a library folder, call the CreateItemQueryWithOptions(QueryOptions) method and specify Deep as the value of the FolderDepth property of the QueryOptions object.

MethodCreate a shallow query that only returns items from the current folderCreate a deep query that returns items from the current folder and from its subfolders
GetItemsAsync() Default behavior of this method.N/a
GetItemsAsync(UInt32, UInt32) Default behavior of this method.N/a
CreateItemQuery() Default behavior of this method.N/a
CreateItemQueryWithOptions(QueryOptions)

 

To get only files, call the GetFilesAsync method. To get only folders, call the GetFoldersAsync method.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

StorageFolder
GetFilesAsync
GetFoldersAsync

 

 

Show:
© 2015 Microsoft