ListLinkItems Method
Lists the files and folders of a link.
Syntax
async sharefile.listLinkItems(linkId : string): Promise<void>
Remarks
Lists the items contained within the link. Calling this method will fire the ItemList event once for each item, and will also populate the Item* properties (clearing any previously-held items in the process).
The items listed are not listed recursively. To get the items contained within folder items,
further calls can be done using the ListItems method.
string linkId = shareFile.Links[0].Id; shareFile.ListLinkItems(linkId);