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

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

Parameters

userId
Type: SystemInt32
UserID
roleId
Type: SystemInt32
RoleID
dt
Type: SystemDateTime
Date till user role connection is valid
See Also