Visual Guard Class Library Documentation

VGRolesInstance.IsUserInRole Method (Guid)

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

public 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

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