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(
	String^ roles
)
F#
static member IsUserInRoles : 
        roles : string -> bool 

Parameters

roles
Type: System..::..String
String delimited with commas (,) or semicolons (;)

Return Value

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

See Also