| 
            
              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.257-beta
SyntaxPublic Function UserIsInRole ( 
	securityPrincipal As SecurityPrincipal,
	roles As String()
) As Boolean
public:
bool UserIsInRole(
	SecurityPrincipal^ securityPrincipal, 
	array<String^>^ roles
)
member UserIsInRole : 
        securityPrincipal : SecurityPrincipal * 
        roles : string[] -> bool 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