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: 2017.0.101.17 (2017.0.101.17)

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

See Also