Gets a feed of activity by the current user, and optionally by followed people and content or by the user's organization.
命名空间: Microsoft.SharePoint.Client.Social
程序集: Microsoft.SharePoint.Client.UserProfiles.Silverlight(位于 Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll 中); Microsoft.SharePoint.Client.UserProfiles.Phone(位于 Microsoft.SharePoint.Client.UserProfiles.Phone.dll 中) Microsoft.SharePoint.Client.UserProfiles(位于 Microsoft.SharePoint.Client.UserProfiles.dll 中)
语法
声明
Public Function GetFeed ( _
type As SocialFeedType, _
options As SocialFeedOptions _
) As ClientResult(Of SocialFeed)
用法
Dim instance As SocialFeedManager
Dim type As SocialFeedType
Dim options As SocialFeedOptions
Dim returnValue As ClientResult(Of SocialFeed)
returnValue = instance.GetFeed(type, options)
public ClientResult<SocialFeed> GetFeed(
SocialFeedType type,
SocialFeedOptions options
)
参数
type
类型:Microsoft.SharePoint.Client.Social.SocialFeedTypeThe feed type to retrieve.
options
类型:Microsoft.SharePoint.Client.Social.SocialFeedOptionsFeed retrieval options such as date range and sort order.
返回值
类型:Microsoft.SharePoint.Client.ClientResult<SocialFeed>
The requested feed based on the specified parameters.
备注
When you retrieve a feed for the current user, you specify a feed type. The feed type that you request 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 and 如何:使用 SharePoint 2013 中的 .NET 客户端对象模型创建和删除帖子以及检索好友动态订阅源.
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 ID of the thread or root post.