PortalUserGetContentAsync Method (CancellationToken)
public Task<PortalUserContent> GetContentAsync( CancellationToken cancellationToken )
The purpose of this Method is to obtain content (items and folders) that belong to a particular authenticated user in a portal. This method performs an asynchronous request to obtain a PortalUserContent object for the logged in user. You cannot use anonymous access to obtain a Portal.PortalUser object and use this Method to obtain valid results. As AGOL/ArcGIS Portal require the use of long term tokens to access secured user information.
To retrieve portal items from folders other than the root use GetContentAsync(String, CancellationToken).