SocialFeedManager.CreateImageAttachment - Méthode
Crée une image en pièce jointe d'un message de microblog.
Espace de noms : Microsoft.SharePoint.Client.Social
Assemblys : Microsoft.SharePoint.Client.UserProfiles.Silverlight (dans Microsoft.SharePoint.Client.UserProfiles.Silverlight.dll); Microsoft.SharePoint.Client.UserProfiles.Phone (dans Microsoft.SharePoint.Client.UserProfiles.Phone.dll) Microsoft.SharePoint.Client.UserProfiles (dans Microsoft.SharePoint.Client.UserProfiles.dll)
Syntaxe
'Déclaration
Public Function CreateImageAttachment ( _
name As String, _
description As String, _
imageData As Stream _
) As ClientResult(Of SocialAttachment)
'Utilisation
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
)
Paramètres
name
Type : System.StringLe nom de l'image.
description
Type : System.StringDescription facultative de l'image.
imageData
Type : System.IO.StreamUn flux pour lire les données d'image.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.ClientResult<SocialAttachment>
L'image en pièce jointe.