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

Note: This API is now obsolete.

Adds specified user to the site.

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

Parameters

ui
Type: CMS.MembershipUserInfo
UserInfo
ri
Type: CMS.MembershipRoleInfo
RoleInfo
See Also