Check if the currently active user is in role passed as a parameter.

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

Syntax

C#
public static bool IsUserInRole(
	string roleName
)
Visual Basic
Public Shared Function IsUserInRole ( 
	roleName As String
) As Boolean
Visual C++
public:
static bool IsUserInRole(
	String^ roleName
)
F#
static member IsUserInRole : 
        roleName : string -> bool 

Parameters

roleName
Type: System..::..String
Role name

Return Value

Type: Boolean
True if the user is in role is, false if it is not.

See Also