This topic has not yet been rated - Rate this topic

SocialDataService.UpdateComment method

This documentation is preliminary and is subject to change.

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

Namespace:  WebSvcSocialDataService
Assembly:  UserProfileServices (in UserProfileServices.dll)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/UpdateComment", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
	ResponseNamespace = "http://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.
ExceptionCondition
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.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.