Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

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

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:
© 2015 Microsoft