Share via


GetUserProfileByIndexResult.Memberships property

Gets or sets the memberships for the user profile.

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

Syntax

'Declaration
Public Property Memberships As MembershipData()
    Get
    Set
'Usage
Dim instance As GetUserProfileByIndexResult
Dim value As MembershipData()

value = instance.Memberships

instance.Memberships = value
public MembershipData[] Memberships { get; set; }

Property value

Type: []
The memberships for the user profile.

Remarks

For more information about types of membership group and membership data, see Memberships Overview and the MembershipData Web service. For a code example that shows how to create a new member group and add a member to the newly created group, see How to: Create Memberships.

See also

Reference

GetUserProfileByIndexResult class

GetUserProfileByIndexResult members

WebSvcUserProfileService namespace