Click or drag to resize
UserRoleInfoProvider.AddUserToRole Method (Int32, Int32, DateTime)
Adds specified user to the role.

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

Parameters

userId
Type: System.Int32
UserID
roleId
Type: System.Int32
RoleID
dt
Type: System.DateTime
Date till user role connection is valid
See Also