Click or drag to resize
UserRoleInfoProviderAddUserToRole Method (Int32, Int32)
Adds specified user to the site.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 10.0.0
Syntax
C#
public static void AddUserToRole(
	int userId,
	int roleId
)

Parameters

userId
Type: SystemInt32
UserID
roleId
Type: SystemInt32
RoleID
See Also