3.1.5.1.2.1.1 SetLike

SharePoint

This method is a static CSOM method.

Return Type: CSOM Int32

The SetLike static method sets or unsets the like quality for the current user for an item within the specified list. The return value is the total number of likes for the specified list item.

Parameters:

listID: A string-represented GUID value specifying the list that the list item belongs to.

Type: CSOM String

itemID: An integer value that identifies a list item within the list it belongs to.

Type: CSOM Int32

like: A Boolean value that indicates the operation being either like or unlike. A True value indicates like.

Type: CSOM Boolean

Show: