Visual Guard Class Library Documentation

VGRoles.IsUserInRole Method (String)

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

public static bool IsUserInRole(
   String roleName
);

Parameters

roleName
The name of the role to search in.

Return Value

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

Remarks

this method is equivalent to IsInRole

Exceptions

Exception Type Condition
ArgumentNullException roleName is null.

-or-

There is no current logged-on user.
ArgumentException roleName is an empty string or is longer than 64 characters.

See Also

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