SocialFeedManager.GetFeedFor 方法
取得以指定使用者或小組網站的活動摘要。
命名空間: 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若要擷取的摘要使用者或小組網站的唯一識別碼。為使用者,您可以使用的帳戶名稱或電子郵件地址。網站摘要小組網站上,使用格式http://<server>/<teamSite>/newsfeed.aspx。
options
類型:Microsoft.SharePoint.Client.Social.SocialFeedOptions摘要擷取選項,例如日期範圍] 及 [排序順序。
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<SocialFeed>
備註
您只能擷取Personal摘要不是目前使用者的使用者類型。如需詳細資訊,請參閱的摘要類型概觀與How to: Create and delete posts and retrieve the social feed by using the .NET client object model。
如果執行緒包含兩個以上的回覆,伺服器會傳回包含只有兩個最新的回覆對話的摘要。(執行緒摘要需要套用IsDigest執行緒屬性)。如果您想要的主題往來中取得所有回覆,呼叫GetFullThread方法和傳入執行緒或根文章的識別碼。