Determines whether the current principal belongs to the specified role.

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

Syntax

C#
bool IsInRole(
	string role
)
Visual Basic (Declaration)
Function IsInRole ( _
	role As String _
) As Boolean

Parameters

role
Type: System..::.String
The name of the role for which to check membership.

Return Value

true if the current principal is a member of the specified role; otherwise, false.

Implements

IPrincipal..::.IsInRole(String)

See Also