UserProfileService.GetCommonMemberships Method

Gets the common memberships a particular user shares with the current user.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetCommonMemberships", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetCommonMemberships ( _
    accountName As String _
) As MembershipData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As MembershipData()

returnValue = instance.GetCommonMemberships(accountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetCommonMemberships", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public MembershipData[] GetCommonMemberships(
    string accountName
)

Parameters

Return Value

Type: []
A MembershipData object.

Remarks

For an example of how to use the GetCommonMemberships method, see the example in GetCommonColleagues method.

See Also

Reference

UserProfileService Class

UserProfileService Members

websvcUserProfileService Namespace