Question 129


5.2.2 Question

Multiple Choices

Which methods help the RoleProvider determine whether a user is assigned a role or set of roles? (Choose all that apply.)

  • A. GetRoles
  • B. GetRolesForUser
  • C. IsUserInRole
  • D. FindUsersInRole

Answer:

BC
Explanation
A. Incorrect: The GetRoles method provides a list of all roles for an ApplicationName.
B. Correct: GetRolesForUser gets a list of roles for a user.
C. Correct: IsUserInRole returns a Boolean on whether a particular user has a role.
D. Incorrect: FindUsersInRole returns a list of users that have the applicable role.