Visual Guard Class Library Documentation

VGRoleProvider.RoleExists Method 

Gets a value indicating whether the specified role name already exists in the authorization-manager policy store.

public override bool RoleExists(
   String roleName
);

Parameters

roleName
The name of the role to search for in the authorization-manager policy store.

Return Value

true if the role name already exists in the authorization-manager policy store; otherwise, false.

Exceptions

Exception Type Condition
ArgumentNullException roleName is null.
ArgumentException roleName is an empty string.-or-roleName contains a comma.

See Also

VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace