Share via


SocialDataService.ReplicateFullSocialData method

Replicates the specified social comments, tags, and ratings for the specified user.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/ReplicateFullSocialData", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ReplicateFullSocialData ( _
    userAccountName As String, _
    changes As SocialReplicationData _
) As Boolean
'Usage
Dim instance As SocialDataService
Dim userAccountName As String
Dim changes As SocialReplicationData
Dim returnValue As Boolean

returnValue = instance.ReplicateFullSocialData(userAccountName, _
    changes)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/SocialDataService/ReplicateFullSocialData", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/SocialDataService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public bool ReplicateFullSocialData(
    string userAccountName,
    SocialReplicationData changes
)

Parameters

  • userAccountName
    Type: System.String

    The user for which the social data replicate is for.

Return value

Type: System.Boolean
true if the replication is successful; otherwise, false. This method returns false if the user profile for userAccountName does not exist, the owner of any of the Comments, Tags or Ratings is not the same as the user profile for userAccountName, or if there is a failure while replicating any of the social data.

Exceptions

Exception Condition
ArgumentNullException

userAccountName or changes is null .

UnauthorizedAccessException

The user does not have permissions to manage social data.

Remarks

This method deletes all social comments, tags, and ratings for the specified user and then rebuilds live social comments, tags, and ratings from the changes parameter, which cannot include deleted items or other user’s social items.

See also

Reference

SocialDataService class

SocialDataService members

WebSvcSocialDataService namespace