Visual Guard Class Library Documentation

VGRoles.IsUserInRole Method (Guid)

Gets a value indicating whether the currently logged-on user is in the specified role.

public static bool IsUserInRole(
   Guid roleId
);

Parameters

roleId
The repository id of the role to search in.

Return Value

true if the currently logged-on user is in the specified role; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException There is no current logged-on user.

See Also

VGRoles Class | Novalys.VisualGuard.Security.Membership Namespace | VGRoles.IsUserInRole Overload List | RepositoryId