SPSocialFeedManager.GetFeed method

SharePoint 2013

Gets a feed of activity by the current user, and optionally by followed people and content or by the user's organization.

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

'Declaration
Public Function GetFeed ( _
	type As SPSocialFeedType, _
	options As SPSocialFeedOptions _
) As SPSocialFeed
'Usage
Dim instance As SPSocialFeedManager
Dim type As SPSocialFeedType
Dim options As SPSocialFeedOptions
Dim returnValue As SPSocialFeed

returnValue = instance.GetFeed(type, options)

Parameters

type
Type: Microsoft.Office.Server.Social.SPSocialFeedType

The feed type to retrieve.

options
Type: Microsoft.Office.Server.Social.SPSocialFeedOptions

Feed retrieval options such as date range and sort order.

Return value

Type: Microsoft.Office.Server.Social.SPSocialFeed
The requested feed based on the specified parameters.

The feed type specifies whether to include activity from followed people and content or from the user's whole organization. For more information, see Overview of feed types.

If a thread contains more than two replies, the server returns a digest of the thread that contains only the two most recent replies. (Thread digests have the IsDigest thread attribute applied.) If you want to get all the replies in a thread, call the GetFullThread method and pass in the thread ID.

Show: