SPDocDiscussion Class
The SPDocDiscussion class represents all the discussions associated with a single document that has been discussed in a document library.
System.Object
Microsoft.SharePoint.SPDocDiscussion
Public Properties
The following table shows the public properties of the SPDocDiscussion class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
CommentCount | Int32 | Gets the total number of comments made by users for a document. |
DocId | System.Guid | Gets the GUID of the document that has been discussed. |
DocUrl | System.Uri | Gets the URL of the document that has been discussed. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Example
The following code example iterates through the collection of document discussions for a document library and sends e-mail notification to a specified address if the total number of comments made about a document is greater than 20.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Namespace: Microsoft.SharePoint
Platforms: Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security