Checks if the currently active user is in any of the roles passed in the input parameter.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static bool IsUserInRoles(
	string[] roles
)
Visual Basic
Public Shared Function IsUserInRoles ( 
	roles As String()
) As Boolean
Visual C++
public:
static bool IsUserInRoles(
	array<String^>^ roles
)
F#
static member IsUserInRoles : 
        roles : string[] -> bool 

Parameters

roles
Type: array<System..::..String>[]()[][]
String array containing roles to check

Return Value

Type: Boolean
True if the user is in any of the roles;false if not.

See Also