Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.71 KB

storagefolder_getfilesasync_1429382825.md

File metadata and controls

32 lines (22 loc) · 1.71 KB
-api-id -api-type
M:Windows.Storage.StorageFolder.GetFilesAsync(Windows.Storage.Search.CommonFileQuery)
winrt method

Windows.Storage.StorageFolder.GetFilesAsync

-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