Table of contents
TOC
Collapse the table of content
Expand the table of content

ListRatingExtensions.SetRating Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Enable Social Settings Likes/Ratings on list. Note: 1. Requires Publishing feature enabled on the web. 2. Defaults enable Ratings Experience on the List 3. When experience set to None, fields are not removed from the list since CSOM does not support removing hidden fields

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void SetRating(this List list, VotingExperience experience)

Parameters

list

  Type: Microsoft.SharePoint.Client.List
  Current List

experience

  Type: OfficeDevPnP.Core.VotingExperience
  Likes/Ratings

Return Value

Type: void

See also

© 2018 Microsoft