SPSocialFeedManager.LockThread method

SharePoint 2013

Locks the specified thread.

Namespace:  Microsoft.Office.Server.Social
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public SPSocialThread LockThread(
	string threadId


Type: System.String

The unique identifier of the thread to lock.

Return value

Type: Microsoft.Office.Server.Social.SPSocialThread
A digest of the thread with the modified thread attributes.

In the UI, the Reply and Like links are removed from a locked thread and a Locked status is shown. However, the thread can be unlocked from the UI.