---
title: "What is the significance of NonActionAttribute?"  
description: "What is the significance of NonActionAttribute?"  
author: "Anonymous User"  
published: 2012-05-19  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1462/what-is-the-significance-of-nonactionattribute  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# What is the significance of NonActionAttribute?

In general, all public methods of a controller class are treated as action methods. If you want prevent this default behavior, just decorate the public method with NonActionAttribute.

## Answers

### Answer by Anonymous User

In general, all public methods of a controller class are treated as action methods. If you want prevent this default behavior, just decorate the public method with NonActionAttribute.


---

Original Source: https://www.mindstick.com/interview/1462/what-is-the-significance-of-nonactionattribute

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
