true if the user is a member of one of the roles associated with this role group; otherwise, false.
The RoleGroup.ContainsUser(System.Security.Principal.IPrincipal) method returns true if the specified user is a member of any of the roles associated with this role group. Roles are searched in the order they are listed in the RoleGroup.Roles property, and searching stops after the first match is found.
This method uses the System.Web.Security.Roles.IsUserInRole(string, string) method to determine whether a user is a member of a role. You must configure role management to use the RoleGroup.ContainsUser(System.Security.Principal.IPrincipal) method. For more information, see Understanding ASP.NET Role Management.