Determines whether the current principal belongs to the role with the specified id.
Namespace: Novalys.VisualGuard.SecurityAssembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)
Syntax
C# |
---|
bool IsInRole( Guid roleId ) |
Visual Basic |
---|
Function IsInRole ( roleId As Guid ) As Boolean |
Parameters
- roleId
- Type: System..::..Guid
The Guid identifying the role for which to check membership.
Return Value
Type: Booleantrue if the current principal is a member of the specified role; otherwise, false.