SocialFeedManager.DeletePost 方法

Deletes the specified microblog post.

命名空间:  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 DeletePost ( _
    postId As String _
) As ClientResult(Of SocialThread)
用法
Dim instance As SocialFeedManager
Dim postId As String
Dim returnValue As ClientResult(Of SocialThread)

returnValue = instance.DeletePost(postId)
public ClientResult<SocialThread> DeletePost(
    string postId
)

参数

  • postId
    类型:System.String

    The unique identifier of the post to delete.

返回值

类型:Microsoft.SharePoint.Client.ClientResult<SocialThread>
A digest of the modified thread, or null if the whole thread is deleted.

备注

If the post is a root post, the whole thread is deleted. For a code example that shows how to delete a post, see 如何:使用 SharePoint 2013 中的 .NET 客户端对象模型创建和删除帖子以及检索好友动态订阅源.

另请参阅

引用

SocialFeedManager 类

SocialFeedManager 成员

Microsoft.SharePoint.Client.Social 命名空间