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

  • description
    Type: System.String

    An optional description of the image.

Return value

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

See also

Reference

SocialFeedManager class

SocialFeedManager members

Microsoft.SharePoint.Client.Social namespace