SocialDataService.AddComment method
Associates a social comment with the specified URL for the current user.
Namespace: WebSvcSocialDataService
Assembly: UserProfileServices (in UserProfileServices.dll)
Syntax
'Declaration
<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
'Usage
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
)
Parameters
url
Type: System.StringThe URL associated with the social comment. This value must be in a valid URI format and must be fewer than 2085 characters in length.
comment
Type: System.StringThe contents of the social comment. This value must contain more than 0 and fewer than 4001 characters.
isHighPriority
Type: System.Nullable<Boolean>true to indicate the social comment has a high priority; otherwise, false. If this value is null , this method assumes false for this parameter.
title
Type: System.StringThe title of the social comment. This value must contain fewer than 501 characters.
Return value
Type: WebSvcSocialDataService.SocialCommentDetail
The new social comment.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | url or comment is null . |
ArgumentException | The length of comment is 0. |
UriFormatException | The value of url is not in a valid format. |
Remarks
This method associates the social comment for the current user with the specified URL.