Click or drag to resize
UserInfoIsInRole Method (String, String, Boolean, Boolean)
Returns true if the user is member of the specified role on the specified site (or on global role if check global is true).

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

Parameters

roleName
Type: SystemString
Role name to check
siteName
Type: SystemString
Site name to check
checkGlobal
Type: SystemBoolean
If true, global roles are checked
checkMembership
Type: SystemBoolean
If true, membership roles are checked

Return Value

Type: Boolean
See Also