Getting All Users and All Roles through asp.net Identity

后端 未结 4 1010
栀梦
栀梦 2020-12-18 21:34

I have a new project i created in VS 2013. I am using the identity system and i\'m confused how to get a list of all users to the application and all roles int he applicati

4条回答
  •  暖寄归人
    2020-12-18 21:54

    System.Web.Security Roles class also allows obtaining the list of roles.

    List roles = System.Web.Security.Roles.GetAllRoles();

提交回复
热议问题