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: 11.0.0
Syntax
C#
public static void AddMembershipToRole(
	int membershipId,
	int roleId
)

Parameters

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