Multiple choice technology web technology

Which keyword is used to prevent an action method is being accessed publically?

  1. [Private]

  2. [NonAction]

  3. [Internal]

  4. [Protected]

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The [NonAction] attribute prevents a public method in a controller from being invoked by a URL request, even though it's public. [Private] and [Protected] are access modifiers for class members, not MVC-specific attributes. [Internal] limits visibility to the assembly but doesn't prevent URL routing.