다음을 통해 공유


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