SocialCommentControl.RenderComment method

Renders the controls used to display and modify the SocialComment.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

protected virtual void RenderComment(
	StringBuilder strBuilder,
	SocialComment comment,
	int sequence,
	int page


Type: System.Text.StringBuilder

A string builder to which the SocialComment HTML string is written.

Type: Microsoft.Office.Server.SocialData.SocialComment

The SocialComment to be rendered.

Type: System.Int32

The display sequence number of the SocialComment.

Type: System.Int32

The page with which the SocialComment is associated.

This method renders the controls for displaying and modifying the specified social comment associated with the specified page to the client.

This method will only display the Edit link if the current user is the owner of the social comment. Similarly, this method will only display the Delete link if the current user is the owner of the social comment or a site administrator.