Click or drag to resize

PortalUserGetContentAsync Method (CancellationToken)

Gets the folders and items that are stored at the user's root folder.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version:
public Task<PortalUserContent> GetContentAsync(
	CancellationToken cancellationToken


Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: TaskPortalUserContent
The task object representing the asynchronous get items operation. The value of the task result contains a PortalUserContent object.

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).

See Also