Share via

SPSocialFeedManager.LockThread method

Locks the specified thread.

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


Public Function LockThread ( _
    threadId As String _
) As SPSocialThread
Dim instance As SPSocialFeedManager
Dim threadId As String
Dim returnValue As SPSocialThread

returnValue = instance.LockThread(threadId)
public SPSocialThread LockThread(
    string threadId


  • 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.

See also


SPSocialFeedManager class

SPSocialFeedManager members

Microsoft.Office.Server.Social namespace