Share via


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)

Syntax

'Declaration
Protected Overridable Sub RenderComment ( _
    strBuilder As StringBuilder, _
    comment As SocialComment, _
    sequence As Integer, _
    page As Integer _
)
'Usage
Dim strBuilder As StringBuilder
Dim comment As SocialComment
Dim sequence As Integer
Dim page As Integer

Me.RenderComment(strBuilder, comment, _
    sequence, page)
protected virtual void RenderComment(
    StringBuilder strBuilder,
    SocialComment comment,
    int sequence,
    int page
)

Parameters

Remarks

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.

See Also

Reference

SocialCommentControl Class

SocialCommentControl Members

Microsoft.SharePoint.Portal.WebControls Namespace