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