SocialDataService.AddComment - Méthode
Associe un commentaire social à l'URL spécifiée pour l'utilisateur actuel.
Espace de noms : WebSvcSocialDataService
Assembly : UserProfileServices (dans UserProfileServices.dll)
Syntaxe
'Déclaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/AddComment", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AddComment ( _
url As String, _
comment As String, _
isHighPriority As Nullable(Of Boolean), _
title As String _
) As SocialCommentDetail
'Utilisation
Dim instance As SocialDataService
Dim url As String
Dim comment As String
Dim isHighPriority As Nullable(Of Boolean)
Dim title As String
Dim returnValue As SocialCommentDetail
returnValue = instance.AddComment(url, _
comment, isHighPriority, title)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/AddComment", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public SocialCommentDetail AddComment(
string url,
string comment,
Nullable<bool> isHighPriority,
string title
)
Paramètres
url
Type : System.StringL'URL associé au commentaire social. Cette valeur doit être au format URI valide et doit être au moins de 2085 caractères.
comment
Type : System.StringLe contenu du commentaire social. Cette valeur doit contenir plus de 0 et 4001 moins de caractères.
isHighPriority
Type : System.Nullable<Boolean>true pour indiquer le commentaire social a une priorité élevée ; dans le cas contraire, false. Si cette valeur est null , cette méthode suppose false pour ce paramètre.
title
Type : System.StringLe titre du commentaire social. Cette valeur doit contenir 501 moins de caractères.
Valeur renvoyée
Type : WebSvcSocialDataService.SocialCommentDetail
Le nouveau commentaire social.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | url ou comment est null . |
ArgumentException | La longueur de comment est 0. |
UriFormatException | La valeur de url n'est pas dans un format valide. |
Remarques
Cette méthode associe le commentaire de mise en réseau pour l'utilisateur actuel à l'URL spécifiée.