SocialCommentWebPart.WebPartPropertyAllowNewComment property

Gets or sets a value that indicates whether the Web Part renders the new comment area for the user to post a new comment.

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

Syntax

'Declaration
Public Property WebPartPropertyAllowNewComment As Boolean
    Get
    Set
'Usage
Dim instance As SocialCommentWebPart
Dim value As Boolean

value = instance.WebPartPropertyAllowNewComment

instance.WebPartPropertyAllowNewComment = value
public bool WebPartPropertyAllowNewComment { get; set; }

Property value

Type: System.Boolean
true if the Web Part renders the new comment area for the user to post a new comment; otherwise, false. The default value is true.

See also

Reference

SocialCommentWebPart class

SocialCommentWebPart members

Microsoft.SharePoint.Portal.WebControls namespace