Share via


MembershipManager.Create method

Creates a membership.

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

Syntax

'Declaration
Public Function Create ( _
    memberGroup As MemberGroup, _
    groupType As MembershipGroupType, _
    groupName As String, _
    privacyLevel As Privacy _
) As Membership
'Usage
Dim instance As MembershipManager
Dim memberGroup As MemberGroup
Dim groupType As MembershipGroupType
Dim groupName As String
Dim privacyLevel As Privacy
Dim returnValue As Membership

returnValue = instance.Create(memberGroup, _
    groupType, groupName, privacyLevel)
public Membership Create(
    MemberGroup memberGroup,
    MembershipGroupType groupType,
    string groupName,
    Privacy privacyLevel
)

Parameters

  • groupName
    Type: System.String

    A string that contains the name of the membership group.

Return value

Type: Microsoft.Office.Server.UserProfiles.Membership
A Membership object that represents the membership.

See also

Reference

MembershipManager class

MembershipManager members

Microsoft.Office.Server.UserProfiles namespace