Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UpdateMembershipPrivacy method

UserProfileService.UpdateMembershipPrivacy method

Updates the membership privacy for the specified account name.

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

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateMembershipPrivacy", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateMembershipPrivacy(
	string accountName,
	Guid sourceInternal,
	string sourceReference,
	Privacy newPrivacy
)

Parameters

accountName
Type: System.String

The account name of the user.

sourceInternal
Type: System.Guid

The GUID for the member group of the membership to update.

sourceReference
Type: System.String

The source reference for the member group of the membership to update.

newPrivacy
Type: WebSvcUserProfileService.Privacy

The new privacy policy.

ExceptionCondition
SoapException

The membership privacy cannot be updated.

This method updates the privacy of the membership specified by the sourceInternal and sourceReference parameters for the user specified by the accountName parameter.

Show:
© 2015 Microsoft