Click or drag to resize

PortalUserGetFavoritesStatusAsync Method (PortalItem, CancellationToken)

Determines whether the given item is in the user's favorites group.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public Task<bool> GetFavoritesStatusAsync(
	PortalItem portalItem,
	CancellationToken cancellationToken
)

Parameters

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

Return Value

Type: TaskBoolean
A task that represents the asynchronous favorites check. The task result contains true if the portal item is in the favorites group, false otherwise.
See Also