共用方式為


SocialRatingManager Members

Include Protected Members
Include Inherited Members

Contains methods and properties used to manipulate social rating data.

The SocialRatingManager type exposes the following members.

Constructors

  Name Description
Public method SocialRatingManager()
Public method SocialRatingManager(SPServiceContext) Constructs a SocialRatingManager object from a specified SPServiceContext object.

Top

Properties

  Name Description
Public property IsSocialAdmin (Inherited from SocialDataManager.)

Top

Methods

  Name Description
Public method DeleteRating(Uri) Deletes a rating submitted by the current user for the specified URL.
Public method DeleteRating(UserProfile) Deletes all ratings submitted by a specified user.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAverage Retrieves the average rating, on a scale of 0-5, for the specified URL.
Protected method GetBulkUserProfiles(List<Int64>) Retrieves a list of user profiles corresponding to the specified list of user record IDs. (Inherited from SocialDataManager.)
Protected method GetBulkUserProfiles(List<Int64>, Boolean) Retrieves a list of user profiles corresponding to the specified list of user record IDs. (Inherited from SocialDataManager.)
Public method GetCount Retrieves the total number of ratings submitted for the specified URL.
Public method GetHashCode (Inherited from Object.)
Public method GetRating(Uri) Retrieves the rating submitted by the current user for the specified URL.
Public method GetRating(UserProfile, Uri) Retrieves the rating submitted by the specified user for the specified URL.
Public method GetRatings(Uri) Retrieves all of the ratings for the specified URL.
Public method GetRatings(UserProfile) Retrieves all of the ratings submitted by the specified user.
Public method GetType (Inherited from Object.)
Protected method GetUserProfile Retrieves a user profile corresponding to the specified user record ID. (Inherited from SocialDataManager.)
Protected method MemberwiseClone (Inherited from Object.)
Public method PropagateRating Retrieves the average rating for the specified URL and updates the corresponding list item (represented by the URL) with the average rating and rating count.
Public method SetRating(Uri, Int32) Creates a rating with the specified value, on a scale of 0-5, for the specified URL.
Public method SetRating(Uri, Int32, FeedbackData) Creates a rating with the specified value, on a scale of 0-5, for the specified URL.
Public method SetRating(Uri, Int32, String) Creates a rating with the specified value, on a scale of 0-5, for the specified URL.
Public method SetRating(Uri, Int32, String, FeedbackData) Creates a rating with the specified value, on a scale of 0-5, for the specified URL.
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SocialRatingManager Class

Microsoft.Office.Server.SocialData Namespace