GDStorageFolderGetFoldersAsync Method |
Namespace: GD
public IAsyncOperation<IReadOnlyList<GDStorageFolder>> GetFoldersAsync()
Exception | Condition |
---|---|
AccessDeniedException | (C# equivalent: System.UnauthorizedAccessException) Secure storage was remotely wiped. |
This query is a shallow query that returns only subfolders in the current folder.
To get items that are files or folders, call the GetItemsAsync method.
using GD; // Get the subfolders in the GD secure storage root folder. var subfolders = await GDWindows.Instance.SecureFolder.GetFoldersAsync(); // Iterate over the results and print the list of folders and files to the Visual Studio Output window. foreach (GDStorageFolder folder in subfolders) Debug.WriteLine(folder.Name);