SPSocialFeedManager.CreatePost method

Creates a microblog post or reply.

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

Syntax

'Declaration
Public Function CreatePost ( _
    targetId As String, _
    creationData As SPSocialPostCreationData _
) As SPSocialThread
'Usage
Dim instance As SPSocialFeedManager
Dim targetId As String
Dim creationData As SPSocialPostCreationData
Dim returnValue As SPSocialThread

returnValue = instance.CreatePost(targetId, _
    creationData)
public SPSocialThread CreatePost(
    string targetId,
    SPSocialPostCreationData creationData
)

Parameters

  • targetId
    Type: System.String

    An ID that represents the endpoint for the root post, reply post, or site feed post.

Return value

Type: Microsoft.Office.Server.Social.SPSocialThread
A digest of the new or modified thread.

Remarks

The value of the targetId parameter can be one of the following:

  • a null reference (Nothing in Visual Basic) to publish a root post for the current user.

  • The thread ID of a post to reply to.

  • The URL of a site feed to post to (for example: http://<siteURL>/newsfeed.aspx).

See also

Reference

SPSocialFeedManager class

SPSocialFeedManager members

Microsoft.Office.Server.Social namespace