Share via


SPDocDiscussion.CommentCount Property

NOTE: This API is now obsolete.

Gets the total number of comments made by users for a document.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("SPDocDiscussion is deprecated", False)> _
Public ReadOnly Property CommentCount As Integer
    Get
'Usage
Dim instance As SPDocDiscussion
Dim value As Integer

value = instance.CommentCount
[ObsoleteAttribute("SPDocDiscussion is deprecated", false)]
public int CommentCount { get; }

Property Value

Type: System.Int32
A 32-bit integer that represents the number of comments.

Remarks

The CommentCount property represents the total number of root messages and replies associated with a document.

See Also

Reference

SPDocDiscussion Class

SPDocDiscussion Members

Microsoft.SharePoint Namespace