Gets a value indicating whether the currently logged-on user is in the specified role.
Namespace: Novalys.VisualGuard.Security.MembershipAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2017.0.101.17 (2017.0.101.17)
Syntax
C# |
---|
[ObsoleteAttribute("This class is obsolete now, plz use VGSecurityManager.Runtime.Roles", true)] public static bool IsUserInRole( Guid roleId ) |
Visual Basic |
---|
<ObsoleteAttribute("This class is obsolete now, plz use VGSecurityManager.Runtime.Roles", true)> Public Shared Function IsUserInRole ( roleId As Guid ) As Boolean |
Parameters
- roleId
- Type: System..::..Guid
The repository id of the role to search in.
Return Value
Type: Booleantrue if the currently logged-on user is in the specified role; otherwise, false.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | There is no current logged-on user. |