Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.98 KB

storagefolder_getfilesasync_1563132095.md

File metadata and controls

39 lines (26 loc) · 1.98 KB
-api-id -api-type
M:Windows.Storage.StorageFolder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery,System.UInt32,System.UInt32)
winrt method

Windows.Storage.StorageFolder.GetFilesAsync

-description

Gets an index-based range of files from the list of all files in the current folder. Also gets the files from the subfolders of the current folder when the value of the query argument is something other than CommonFileQuery.DefaultQuery. Files are sorted based on the specified value from the CommonFileQuery enumeration.

-parameters

-param query

One of the enumeration values that specifies how to sort the files and determines whether the query is shallow or deep.

-param startIndex

The zero-based index of the first file in the range to retrieve.

-param maxItemsToRetrieve

The maximum number of files to retrieve.

-returns

When this method completes successfully, it returns a flat list of files sorted as specified by query. The list is of type IReadOnlyList<StorageFile>. Each file in the list is represented by a StorageFile object.

-exceptions

T:System.UnauthorizedAccessException

You don't have permission to access the contents of the current folder. For more information, see File access permissions.

-remarks

-examples

-see-also

File access permissions, GetFilesAsync(CommonFileQuery), GetFilesAsync, GetItemsAsync