IStorageFolder.cs 715 B

1234567891011121314151617181920
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using Avalonia.Metadata;
  4. namespace Avalonia.Platform.Storage;
  5. /// <summary>
  6. /// Manipulates folders and their contents, and provides information about them.
  7. /// </summary>
  8. [NotClientImplementable]
  9. public interface IStorageFolder : IStorageItem
  10. {
  11. /// <summary>
  12. /// Gets the files and subfolders in the current folder.
  13. /// </summary>
  14. /// <returns>
  15. /// When this method completes successfully, it returns a list of the files and folders in the current folder. Each item in the list is represented by an <see cref="IStorageItem"/> implementation object.
  16. /// </returns>
  17. Task<IReadOnlyList<IStorageItem>> GetItemsAsync();
  18. }