Click or drag to resize
SystemPrincipalIsInRole Method
Determines whether the current principal belongs to the specified role.

Namespace: Kentico.Web.Mvc.Internal
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public override bool IsInRole(
	string role
)

Parameters

role
Type: SystemString
The name of the role for which to check membership.

Return Value

Type: Boolean
true if the current principal is a member of the specified role; otherwise, false.

Implements

IPrincipalIsInRole(String)
See Also