Click or drag to resize

RecroSecUserIsInRole Method

Gets a value that indicates whether specified User is in the specified Role.

Namespace:  Recrovit.RecroGridFramework.Security
Assembly:  Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 2.6.0
Syntax
C#
public static bool UserIsInRole(
	string userId,
	string roleName,
	string userName = null
)

Parameters

userId
Type: SystemString
The User identifier.
roleName
Type: SystemString
Name of the Role.
userName (Optional)
Type: SystemString
Optional parameter is the name of the User instead User identifier.

Return Value

Type: Boolean
true if User is in Role; otherwise false.
See Also