2013-03-19 20 views

回答

1

你必須與SocialAttachment類玩法:http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.social.socialattachment_members.aspx

然後,你可以定義的附件類型(圖片,視頻或文檔):http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.social.socialattachmentkind.aspx

SocialPostCreationData postCreationData = new SocialPostCreationData(); 
postCreationData.ContentText = "My feed content"; 

SocialAttachment attachment = new SocialAttachment(); 
attachment.AttachmentKind = SocialAttachmentKind.Image; 
attachment.Uri = "Url_To_Image"; 
postCreationData.Attachment = attachment; 

現在,棘手的部分將包括在個人網站上以當前文件上傳圖片。