Click or drag to resize
UserRoleInfoProviderDeleteUserRoleInfo Method (UserInfo, RoleInfo)

Note: This API is now obsolete.

Deletes specified userRole.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IUserRoleInfoProvider.Remove(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - UserRoleInfo.Provider.")]
public static void DeleteUserRoleInfo(
	UserInfo userInfo,
	RoleInfo roleInfo
)

Parameters

userInfo
Type: CMS.MembershipUserInfo
User which will be removed from role
roleInfo
Type: CMS.MembershipRoleInfo
Role from which will be the user removed
See Also