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

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 9.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
See Also