Determines whether the current principal belongs to the specified role.
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( string role ) |
Visual Basic |
---|
Function IsInRole ( role As String ) As Boolean |
Parameters
- role
- Type: System..::..String
The name of the role for which to check membership.
Return Value
Type: Booleantrue if the current principal is a member of the specified role; otherwise, false.