• Home
  • What attribute or code snippet within a controller enables a role named Admin to access actions or code blocks after the check-in code?
Question 1:
What attribute or code snippet within a controller enables a role named Admin to access actions or code blocks after the check-in code?
A. RoleProvider.GetRolesForUser(Admin)
B. [Authorize(Roles=Admin)]
C. RoleProvider.IsUserInRole(User.Name)
D. [AuthorizeAttribute(Roles=Admin)]

These questions are from this test. Would you like to take a practice test?

MVC Quiz 4 | Englishfreetest.com