SocialFeedManager.GetFeedFor 方法

Gets a feed of activity by the specified user or team site.

命名空间:  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 GetFeedFor ( _
    actorId As String, _
    options As SocialFeedOptions _
) As ClientResult(Of SocialFeed)
用法
Dim instance As SocialFeedManager
Dim actorId As String
Dim options As SocialFeedOptions
Dim returnValue As ClientResult(Of SocialFeed)

returnValue = instance.GetFeedFor(actorId, _
    options)
public ClientResult<SocialFeed> GetFeedFor(
    string actorId,
    SocialFeedOptions options
)

参数

  • actorId
    类型:System.String

    The unique identifier of the user or team site to retrieve the feed for. For a user, you can use the account name or email address. For a site feed on a team site, use the format http://<server>/<teamSite>/newsfeed.aspx.

返回值

类型:Microsoft.SharePoint.Client.ClientResult<SocialFeed>

备注

You can only retrieve the Personal feed type for a user who is not the current user. 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.

另请参阅

引用

SocialFeedManager 类

SocialFeedManager 成员

Microsoft.SharePoint.Client.Social 命名空间