Visual Guard Class Library Documentation

VGIPrincipal.IsInRole Method (String)

Determines whether the current principal belongs to the specified role.

bool IsInRole(
   String role
);

Parameters

role
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.

See Also

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