Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all roles - ASP .Net Membership

I have an ASP .net MVC 2.0 web site and I am using the membership provider to store users and groups.

How do I get a list of all the roles?

like image 612
Rigobert Song Avatar asked Dec 13 '22 22:12

Rigobert Song


1 Answers

Sorry got it

System.Web.Security.Roles.GetAllRoles()
like image 198
Rigobert Song Avatar answered Jan 02 '23 17:01

Rigobert Song