Public ReadOnly Property PortalFolders As IReadOnlyList(Of PortalFolder)
public IReadOnlyList<PortalFolder> PortalFolders {get;}
Public ReadOnly Property PortalFolders As IReadOnlyList(Of PortalFolder)
public IReadOnlyList<PortalFolder> PortalFolders {get;}
{
var activePortal = ArcGISPortalManager.Current.GetActivePortal();
var owner = activePortal.GetSignOnUsername();
var activeUserContent = await activePortal.GetUserContentAsync(owner);
//Get content for a specific folder (identified by its folder id)
//var userContent = await portal.GetUserContentAsync(owner, folderId);
//Get all the folders
foreach (var pf in userContent.PortalFolders)
{
//Do something with the folders
}
//Get all the content items
foreach (var pi in userContent.PortalItems)
{
//Do something with the portal items
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)