Checks if the currently active user is a member of the role with ID 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 username,
	Guid role
)
Visual Basic
Public Shared Function IsUserInRole ( 
	username As String,
	role As Guid
) As Boolean
Visual C++
public:
static bool IsUserInRole(
	String^ username, 
	Guid role
)
F#
static member IsUserInRole : 
        username : string * 
        role : Guid -> bool 

Parameters

username
Type: System..::..String
Username
role
Type: System..::..Guid
Role

Return Value

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

See Also