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
memberGroup
Type: Microsoft.Office.Server.UserProfiles.MemberGroupA MemberGroup object that represents the membership group.
groupType
Type: Microsoft.Office.Server.UserProfiles.MembershipGroupTypeA MembershipGroupType value that specifies the type of the membership group.
groupName
Type: System.StringA string that contains the name of the membership group.
privacyLevel
Type: Microsoft.Office.Server.UserProfiles.PrivacyA Privacy value that specifies the privacy level of the membership.
Return Value
Type: Microsoft.Office.Server.UserProfiles.Membership
A Membership object that represents the membership.