Click or drag to resize
UserInfoIsInRole Method (String, String)
Returns true if the user is a member of the role in context of the specified site.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public virtual bool IsInRole(
	string roleName,
	string siteName
)

Parameters

roleName
Type: SystemString
Role name to check
siteName
Type: SystemString
Site name to check

Return Value

Type: Boolean
Remarks
The check also accounts for membership roles and global roles.
See Also