Click or drag to resize

DataContextUserIsInRole(SecurityPrincipal, String) Method

Determines if user is in one of the provided of roles.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public bool UserIsInRole(
	SecurityPrincipal securityPrincipal,
	string[] roles
)
View Source

Parameters

securityPrincipal  SecurityPrincipal
Security principal that provides role-based security.
roles  String
List of role names.

Return Value

Boolean
true if user is in one of the roles; otherwise, false.
See Also