Gets a value indicating whether the currently logged-on user is in the specified role.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public bool IsUserInRole(
	Guid roleId
)
Visual Basic (Declaration)
Public Function IsUserInRole ( _
	roleId As Guid _
) As Boolean

Parameters

roleId
Type: System..::.Guid
The repository id of the role to search in.

Return Value

true if the currently logged-on user is in the specified role; otherwise, false.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThere is no current logged-on user.

See Also