Click or drag to resize
UserRoleInfoProviderIsUserInRole Method
Returns true if the user is member of specified role.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public static bool IsUserInRole(
	int userId,
	int roleId
)

Parameters

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

Return Value

Type: Boolean
See Also