How to get roles array from Authorize Attribute of certain action in ASP.NET MVC?

mczxikb

New Member
Suppose I have following Controller and action with authorization Attribute: \[code\] public class IndexController : Controller { // // GET: /Index/ [Authorize(Roles="Registered")] public ActionResult Index() { return View(); } }\[/code\]I've searched over the entire Internet and not found an answer for this simple question: how to get the roles annotated to an especific Action/Controller? In this case: Index Action has: string[] = {"Registered"}
 
Back
Top