Click or drag to resize

DataContextUserIsInRole(SecurityPrincipal, String) Method

Determines if user is in a specific role or list of roles (comma separated).

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

Parameters

securityPrincipal  SecurityPrincipal
Principal that provides role-based security.
role  String
Role or comma separated list of roles.

Return Value

Boolean
true if user is in role(s); otherwise, false.
Remarks
Set to * for any role.
See Also