Click or drag to resize
MembershipRoleInfoProviderAddMembershipToRole Method
Sets relationship between specified membership and role.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.2.23
Syntax
C#
public static void AddMembershipToRole(
	int membershipId,
	int roleId
)

Parameters

membershipId
Type: SystemInt32
Membership ID
roleId
Type: SystemInt32
Role ID
See Also