Determines whether the current principal belongs to the specified role.

Namespace: Novalys.VisualGuard.Security
Assembly: 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: Boolean
true if the current principal is a member of the specified role; otherwise, false.

Implements

IPrincipal..::..IsInRole(String)

See Also