Click or drag to resize

DataContextUserIsInGroup(SecurityPrincipal, String) Method

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

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

Parameters

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

Return Value

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