Share via


UserProfileService.UpdateMembershipPrivacy Method

Updates the membership privacy for the specified account name.

Namespace:  websvcUserProfileService
Assembly:  MOSSSOAP (in MOSSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateMembershipPrivacy", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateMembershipPrivacy ( _
    accountName As String, _
    sourceInternal As Guid, _
    sourceReference As String, _
    newPrivacy As Privacy _
)
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim sourceInternal As Guid
Dim sourceReference As String
Dim newPrivacy As Privacy

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

Parameters

  • sourceInternal
    Type: System.Guid
    Internal unique identifier.
  • sourceReference
    Type: System.String
    DirectoryEntry of the Distribution List (DL) from the Active Directory, or the SPWeb or SPSite object, depending on the MemberGroup.

See Also

Reference

UserProfileService Class

UserProfileService Members

websvcUserProfileService Namespace