Visual Guard Class Library Documentation

VGRoleProvider.GetRolesForUser Method 

Gets a list of the roles that a user is in.

public override string[] GetRolesForUser(
   String username
);

Parameters

username
The user to return a list of roles for.

Return Value

A string array containing the names of all the roles that the specified user is in.

Exceptions

Exception Type Condition
ArgumentException username is longer than 256 characters.
ArgumentNullException username is null.

See Also

VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace