SocialFeedManager.CreateImageAttachment method
Creates an image attachment for a microblog post.
Namespace: Microsoft.SharePoint.Client.Social
Assembly: Microsoft.SharePoint.Client.UserProfiles (in Microsoft.SharePoint.Client.UserProfiles.dll)
Syntax
'Declaration
Public Function CreateImageAttachment ( _
name As String, _
description As String, _
imageData As Stream _
) As ClientResult(Of SocialAttachment)
'Usage
Dim instance As SocialFeedManager
Dim name As String
Dim description As String
Dim imageData As Stream
Dim returnValue As ClientResult(Of SocialAttachment)
returnValue = instance.CreateImageAttachment(name, _
description, imageData)
public ClientResult<SocialAttachment> 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.SharePoint.Client.ClientResult<SocialAttachment>
The image attachment.