🎴 Flashcard Mode
web technology Online Quiz - 32
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Which keyword is used to prevent an action method is being accessed publically?
AnswerClick to flip back
A
[NonAction]
💡 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.