SPSocialFeedManager.CreateImageAttachment method

SharePoint 2013

Generates an image attachment for a microblog post.

Namespace:  Microsoft.Office.Server.Social
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public SPSocialAttachment 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.Office.Server.Social.SPSocialAttachment
An image attachment.
Show: