-api-id | -api-type |
---|---|
M:Windows.Storage.StorageFolder.GetItemsAsync(System.UInt32,System.UInt32) |
winrt method |
Gets an index-based range of files and folders from the list of all files and subfolders in the current folder.
The zero-based index of the first item in the range to get.
The maximum number of items to get.
When this method completes successfully, it returns a list of the files and subfolders in the current folder. The list is of type IReadOnlyList<IStorageItem>. Each item in the list is represented by an IStorageItem object.
To work with the returned items, call the IsOfType method of the IStorageItem interface to determine whether each item is a file or a folder. Then cast the item to a StorageFolder or StorageFile.
You don't have permission to access the contents of the current folder. For more information, see File access permissions.
File access permissions, GetItemsAsync, GetFilesAsync, GetFoldersAsync