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
strBuilder
Type: System.Text.StringBuilderA string builder to which the SocialComment HTML string is written.
comment
Type: Microsoft.Office.Server.SocialData.SocialCommentThe SocialComment to be rendered.
sequence
Type: System.Int32The display sequence number of the SocialComment.
page
Type: System.Int32The page with which the SocialComment is associated.
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.