SPSocialFeedManager.LockThread method
Locks the specified thread.
Namespace: Microsoft.Office.Server.Social
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function LockThread ( _
threadId As String _
) As SPSocialThread
'Usage
Dim instance As SPSocialFeedManager
Dim threadId As String
Dim returnValue As SPSocialThread
returnValue = instance.LockThread(threadId)
public SPSocialThread LockThread(
string threadId
)
Parameters
threadId
Type: System.StringThe 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.
Remarks
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.