SocialDataService.DeleteComment Method

Deletes the social comment associated with the current user and specified URL that was last modified at the specified time.

Namespace:  [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/DeleteComment", RequestNamespace := "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub DeleteComment ( _
    url As String, _
    lastModifiedTime As DateTime _
)
'Usage
Dim instance As SocialDataService
Dim url As String
Dim lastModifiedTime As DateTime

instance.DeleteComment(url, lastModifiedTime)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/SocialDataService/DeleteComment", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void DeleteComment(
    string url,
    DateTime lastModifiedTime
)

Parameters

  • url
    Type: System.String

    The URL of the social comment to be deleted. 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 deleted.

Exceptions

Exception Condition
ArgumentNullException

url is null .

UriFormatException

The value of url is not in a valid format.

Remarks

This method deletes the specified social comment associated with the current user.

See Also

Reference

SocialDataService Class

SocialDataService Members

SocialDataService Web Service