RecroSecUserIsInRole Method

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

Definition

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

Parameters

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

Return Value

Boolean
true if User is in Role; otherwise false.

See Also