SocialDataService.DeleteComment method

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

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/DeleteComment", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "https://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("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/DeleteComment", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://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

WebSvcSocialDataService namespace