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
name
Type: System.StringThe name of the image.
description
Type: System.StringAn optional description of the image.
imageData
Type: System.IO.StreamA stream for reading the image data.
Return value
Type: Microsoft.Office.Server.Social.SPSocialAttachment
An image attachment.