SocialFeedManager.CreateImageAttachment method

SharePoint Online

Creates an image attachment for a microblog post.

Namespace:  Microsoft.SharePoint.Client.Social
Assembly:  Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)

public ClientResult<SocialAttachment> CreateImageAttachment(
	string name,
	string description,
	Stream imageData
)

Parameters

name
Type: System.String

The name of the image.

description
Type: System.String

An optional description of the image.

imageData
Type: System.IO.Stream

A stream for reading the image data.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<SocialAttachment>
The image attachment.
Show: