SocialDataService.ReplicateFullSocialData Method
Replicates the specified social comments, tags, and ratings for the specified user.
Namespace: [SocialDataService Web service]
Web service reference: http://Site/_vti_bin/SocialDataService.asmx
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.StringThe user for which the social data replicate is for.
changes
Type: [SocialDataService Web service].SocialReplicationDataThe social data to replicate for the specified user. The DeletedComments, DeletedTags, and DeletedRatings properties must be null .
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.