Click or drag to resize

PortalItemAddRatingAsync Method (Double, CancellationToken)

Adds a rating to an item that you have access to. Only one rating can be given to an item per user. If this call is made on an already rated item, the new rating will overwrite the current one. A user cannot rate their own item. Available only to authenticated users.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public Task AddRatingAsync(
	double rating,
	CancellationToken cancellationToken
)

Parameters

rating
Type: SystemDouble
The rating.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: Task
The task object representing the asynchronous add rating operation. The value of the task result is a double.
See Also