Share via


MembershipManager.GetItems method (Privacy, MembershipSortType)

Returns the user profile memberships with a specified privacy level and sorting.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function GetItems ( _
    privacyLevel As Privacy, _
    sortType As MembershipSortType _
) As Membership()
'Usage
Dim instance As MembershipManager
Dim privacyLevel As Privacy
Dim sortType As MembershipSortType
Dim returnValue As Membership()

returnValue = instance.GetItems(privacyLevel, _
    sortType)
public Membership[] GetItems(
    Privacy privacyLevel,
    MembershipSortType sortType
)

Parameters

Return value

Type: []
An array of Membership objects that represent the memberships.

See also

Reference

MembershipManager class

MembershipManager members

GetItems overload

Microsoft.Office.Server.UserProfiles namespace