Export (0) Print
Expand All

SPSocialFeedManager.CreatePost method

SharePoint 2013

Creates a microblog post or reply.

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

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.

creationData
Type: Microsoft.Office.Server.Social.SPSocialPostCreationData

The new post's content and related information.

Return value

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

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

Show:
© 2014 Microsoft