SocialDataService.UpdateComment method

Updates an existing social comment for the current user on the specified URL.

Namespace:  WebSvcSocialDataService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/UpdateComment", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateComment ( _
    url As String, _
    lastModifiedTime As DateTime, _
    comment As String, _
    isHighPriority As Boolean _
) As DateTime
'Usage
Dim instance As SocialDataService
Dim url As String
Dim lastModifiedTime As DateTime
Dim comment As String
Dim isHighPriority As Boolean
Dim returnValue As DateTime

returnValue = instance.UpdateComment(url, _
    lastModifiedTime, comment, isHighPriority)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/UpdateComment", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public DateTime UpdateComment(
    string url,
    DateTime lastModifiedTime,
    string comment,
    bool isHighPriority
)

Parameters

  • url
    Type: System.String

    The URL of the social comment to be updated. This value must be in a valid URI format and must contain fewer than 2085 characters.

  • lastModifiedTime
    Type: System.DateTime

    The last modified time of the social comment to be updated.

  • comment
    Type: System.String

    The new content of the social comment. This value must contain more than 0 and fewer than 4001 characters.

  • isHighPriority
    Type: System.Boolean

    true to indicate the social comment has a high priority; otherwise, false.

Return value

Type: System.DateTime
The time when the social comment is updated. If the comment cannot be updated, this method returns the current time.

Exceptions

Exception Condition
ArgumentNullException

url or comment is null .

ArgumentException

comment has a length of 0.

UriFormatException

url is not a valid format.

UnauthorizedAccessException

The current user profile cannot be found.

Remarks

The method updates the social comment identified by the urllastModifiedTime parameters.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace