SocialDataService.GetCommentsOfUserOnUrl Method
Retrieves all of the social comments created by the specified user for 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/GetCommentsOfUserOnUrl", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetCommentsOfUserOnUrl ( _
userAccountName As String, _
url As String _
) As SocialCommentDetail()
'Usage
Dim instance As SocialDataService
Dim userAccountName As String
Dim url As String
Dim returnValue As SocialCommentDetail()
returnValue = instance.GetCommentsOfUserOnUrl(userAccountName, _
url)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/GetCommentsOfUserOnUrl", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public SocialCommentDetail[] GetCommentsOfUserOnUrl(
string userAccountName,
string url
)
Parameters
userAccountName
Type: System.StringThe account name of the specified user.
url
Type: System.StringThe URL for which social comments are retrieved. This value must be in a valid URI format and nust contain fewer than 2085 characters.
Return Value
Type: []
An array that contains all social comments created by the specified user for the specified URL.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | userAccountName or url is null . |
UserNotFoundException | The user profile for userAccountName cannot be found. |
UriFormatException | url is not in the correct format. |
SqlException | The user does not have permission to access the user profile for userAccountName. |
Remarks
This method retrieves up to 1000 social comments created by the specified user for the specified URL.