-api-id | -api-type |
---|---|
M:Windows.Storage.StorageFolder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery,System.UInt32,System.UInt32) |
winrt method |
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.
One of the enumeration values that specifies how to sort the files and determines whether the query is shallow or deep.
The zero-based index of the first file in the range to retrieve.
The maximum number of files to retrieve.
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.
You don't have permission to access the contents of the current folder. For more information, see File access permissions.
File access permissions, GetFilesAsync(CommonFileQuery), GetFilesAsync, GetItemsAsync