|
DataContextUserIsInGroup(SecurityPrincipal, String) Method
|
Determines if user is in one of the provided of groups.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
SyntaxPublic Function UserIsInGroup (
securityPrincipal As SecurityPrincipal,
groups As String()
) As Boolean
public:
bool UserIsInGroup(
SecurityPrincipal^ securityPrincipal,
array<String^>^ groups
)
member UserIsInGroup :
securityPrincipal : SecurityPrincipal *
groups : string[] -> bool
function UserIsInGroup(securityPrincipal, groups);
View SourceParameters
- securityPrincipal SecurityPrincipal
- Security principal that provides role-based security.
- groups String
- List of group names.
Return Value
Booleantrue if user is in one of the
groups; otherwise,
false.
See Also