|
DataContextUserIsInRole(SecurityPrincipal, String) Method
|
Determines if user is in one of the provided of roles.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax function UserIsInRole(securityPrincipal, roles);
View SourceParameters
- securityPrincipal SecurityPrincipal
- Security principal that provides role-based security.
- roles String
- List of role names.
Return Value
Booleantrue if user is in one of the
roles; otherwise,
false.
See Also