Determines whether the current principal belongs to the role with the specified id.

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(
	Guid roleId
)
Visual Basic (Declaration)
Function IsInRole ( _
	roleId As Guid _
) As Boolean

Parameters

roleId
Type: System..::.Guid
The Guid identifying the role for which to check membership.

Return Value

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

See Also