SocialFeedManager.GetFeed 方法
取得目前的使用者,與您也可以追蹤的人員和內容或使用者的組織的活動摘要。
命名空間: 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.SocialFeedType要擷取的摘要的類型。
options
類型:Microsoft.SharePoint.Client.Social.SocialFeedOptions摘要擷取選項,例如日期範圍] 及 [排序順序。
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<SocialFeed>
根據指定的參數要求的摘要。
備註
當您擷取目前使用者的摘要時,您可以指定摘要的類型。您要求的摘要的類型指定是否要包含從已追蹤的人員和內容,或從使用者的整個組織的活動。如需詳細資訊,請參閱的摘要類型概觀與How to: Create and delete posts and retrieve the social feed by using the .NET client object model。
如果執行緒包含兩個以上的回覆,伺服器會傳回包含只有兩個最新的回覆對話的摘要。(執行緒摘要需要套用IsDigest執行緒屬性)。如果您想要的主題往來中取得所有回覆,呼叫GetFullThread方法和傳入執行緒或根文章的識別碼。