Visual Guard Class Library Documentation

VGIPrincipal.IsInRole Method (Guid)

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

bool IsInRole(
   Guid roleId
);

Parameters

roleId
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

VGIPrincipal Interface | Novalys.VisualGuard.Security Namespace | VGIPrincipal.IsInRole Overload List