UserRoleInfoProviderIsUserInRole Method |
Returns true if the user is member of specified role.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 9.0.0
Syntax public static bool IsUserInRole(
int userId,
int roleId
)
Parameters
- userId
- Type: SystemInt32
User ID - roleId
- Type: SystemInt32
Role ID
Return Value
Type:
BooleanSee Also