SPSocialFeedManager.CreateImageAttachment method

Generates an image attachment for a microblog post.

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

Syntax

'Declaration
Public Function CreateImageAttachment ( _
    name As String, _
    description As String, _
    imageData As Stream _
) As SPSocialAttachment
'Usage
Dim instance As SPSocialFeedManager
Dim name As String
Dim description As String
Dim imageData As Stream
Dim returnValue As SPSocialAttachment

returnValue = instance.CreateImageAttachment(name, _
    description, imageData)
public SPSocialAttachment CreateImageAttachment(
    string name,
    string description,
    Stream imageData
)

Parameters

  • description
    Type: System.String

    An optional description of the image.

Return value

Type: Microsoft.Office.Server.Social.SPSocialAttachment
An image attachment.

See also

Reference

SPSocialFeedManager class

SPSocialFeedManager members

Microsoft.Office.Server.Social namespace