Visual Guard Class Library Documentation

VGRoleProvider.IsUserInRole Method 

Gets a value indicating whether the specified user is in the specified role.

public override bool IsUserInRole(
   String username,
   String roleName
);

Parameters

username
The name of the user to search for.
roleName
The name of the role to search in.

Return Value

true if the specified user is in the specified role; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException roleName is null.

-or-

username is null.
ArgumentException roleName is an empty string.

-or-

username is an empty string.

See Also

VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace