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

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

Parameters

userId
Type: SystemInt32
User ID
roleId
Type: SystemInt32
Role ID
See Also