Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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("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.StringThe 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.DateTimeThe 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.