Checks if the currently active user is in any of the roles passed in the input parameter.
Namespace: MonoSoftware.MonoX.UtilitiesAssembly: 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
|
Return Value
Type:
BooleanTrue if the user is in any of the roles;false if not.
See Also