SocialDataService.UpdateComment Method
Updates an existing social comment for the current user on the specified URL.
Namespace: [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
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.StringThe 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.DateTimeThe last modified time of the social comment to be updated.
comment
Type: System.StringThe new content of the social comment. This value must contain more than 0 and fewer than 4001 characters.
isHighPriority
Type: System.Booleantrue 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.