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

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static void AddUserToRole(
	UserInfo ui,
	RoleInfo ri,
	DateTime dt
)

Parameters

ui
Type: CMS.MembershipUserInfo
UserInfo
ri
Type: CMS.MembershipRoleInfo
RoleInfo
dt
Type: SystemDateTime
Date till user role connection is valid
See Also