Click or drag to resize
IUserRoleInfoProviderAdd Method
Creates UserRoleInfo binding.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
void Add(
	int userId,
	int roleId,
	Nullable<DateTime> validTo = null
)

Parameters

userId
Type: SystemInt32
User ID.
roleId
Type: SystemInt32
Role ID.
validTo (Optional)
Type: SystemNullableDateTime
Date till user role connection is valid, or null.
See Also