Windows.Storage.StorageFolder.GetFoldersAsync

August 18, 2021 ยท View on GitHub

-description

Gets the subfolders in the current folder. When the value of the query argument is something other than CommonFolderQuery.DefaultQuery, gets a list of virtual folders that represent containers for groups of files in the subfolders of the current folder. Files are grouped into folders based on the specified value from the CommonFolderQuery enumeration.

-parameters

-param query

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

-returns

When this method completes successfully, it returns a list of subfolders. When the value of the query argument is something other than CommonFolderQuery.DefaultQuery, this method returns a list of virtual folders that represent containers for groups of files in the subfolders of the current folder. (Files from the current folder are not included.) The files are grouped as specified by query. The list is of type IReadOnlyList<StorageFolder>. Each folder in the list is represented by a StorageFolder 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, GetFoldersAsync(CommonFolderQuery, UInt32, UInt32), GetFoldersAsync, GetItemsAsync