2013-03-19 2 views
1

이미지가있는 메시지와 함께 SharePoint 2013 사회 피드에 게시하고 싶습니다.SharePoint2013에 게시하는 방법 ImageData를 사용하는 사회 피드

브라우저에서 이미지로 메시지를 게시 할 수 있습니다. 하지만 API (CSOM)에서 볼 수는 없습니다. API를 찾았지만 찾을 수 없습니다.

CSOM을 사용하여 소셜 피드에 이미지가 포함 된 메시지를 게시하려면 어떻게해야합니까? 첨부 파일의 유형 (이미지, 비디오 또는 문서) 정의 할 수 있습니다 그리고

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; 

지금을, 까다로운 부분이 구성됩니다

답변

1

당신은 SocialAttachment 클래스와 플레이해야 개인 사이트의 현재 피드에 이미지 업로드

관련 문제