Windows.Storage.StorageFolder.GetFilesAsync
August 18, 2021 ยท View on GitHub
-description
Gets the 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.
-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, UInt32, UInt32), GetFilesAsync, GetItemsAsync