Click or drag to resize
MembershipRoleInfoProviderRemoveMembershipFromRole Method

Note: This API is now obsolete.

Deletes relationship between specified membership and role.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IMembershipRoleInfoProvider.Remove(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MembershipRoleInfo.Provider.")]
public static void RemoveMembershipFromRole(
	int membershipId,
	int roleId
)

Parameters

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