SocialDataService.GetCommentsOfUserOnUrl method

Retrieves all of the social comments created by the specified user for the specified URL.

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

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.String

    The account name of the specified user.

  • url
    Type: System.String

    The 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.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace