---
title: "What are the Filters in MVC ?"  
description: "What are the Filters in MVC ?"  
author: "Shrikant Mishra"  
published: 2020-08-21  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/33732/what-are-the-filters-in-mvc  
category: "asp.net mvc"  
tags: ["asp.net mvc", "mvc"]  
reading_time: 1 minute  

---

# What are the Filters in MVC ?

At times you want to execute some logic either before the execution of the action method or after the execution. You can use Action Filter for such kind of scenario. These Filters define the logic which is executed before or after the execution of the action method. The Action Filters are attributes which we can apply to the action methods. Following are the MVC action filter types:

- Authorization filter (implements IAuthorizationFilter)
- Action filter (implements IActionFilter)
- Result filter (implements IResultFilter)
- Exception filter (implementsIExceptionFilter attribute)

## Answers

### Answer by Shrikant Mishra

At times you want to execute some logic either before the execution of the action method or after the execution. You can use Action Filter for such kind of scenario. These Filters define the logic which is executed before or after the execution of the action method. The Action Filters are attributes which we can apply to the action methods. Following are the MVC action filter types:

- Authorization filter (implements IAuthorizationFilter)
- Action filter (implements IActionFilter)
- Result filter (implements IResultFilter)
- Exception filter (implementsIExceptionFilter attribute)


---

Original Source: https://www.mindstick.com/interview/33732/what-are-the-filters-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
