Click or drag to resize

PortalUserAddToFavoritesAsync Method (PortalItem, CancellationToken)

Adds the given item to the user's favorites group.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0.0
Syntax
C#
public Task AddToFavoritesAsync(
	PortalItem portalItem,
	CancellationToken cancellationToken
)

Parameters

portalItem
Type: Esri.ArcGISRuntime.PortalPortalItem
The portal item to add to favorites.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: Task
A task that represents the asynchronous operation.
See Also