使用过滤器的主要优点是什么? [英] what are the main advantages of using filters

查看:64
本文介绍了使用过滤器的主要优点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在mvc3中有4个过滤器,那些是AuthorizationFilters,ActionFilters,ResultFilters和ExeceptionFilter



那么这些如何在mvc 3中有用并且我在哪里使用这些?



作为Asp.net mvc3 - 过滤器

用什么Asp.net - ?

解决方案





看看这里:

http://msdn.microsoft.com/en-us/library/gg416513%28v=vs.98%29.aspx [ ^ ]

http:// msdn .microsoft.com / zh-CN / library / dd410209%28v = vs.100%29.aspx [ ^ ]

初学者教程,用于理解ASP.NET MVC中的过滤器和属性 [ ^ ]

http://www.asp.net/mvc/tutorials/hands-on-labs/aspnet-mvc-4-custom-action-filters [ ^ ]

In mvc3 4 filters are there those are AuthorizationFilters , ActionFilters ,ResultFilters and ExeceptionFilter

so how these are helpful in mvc 3 and where i exactly use these?

As Asp.net mvc3 - Filters
what are used Asp.net - ?

解决方案

Hi,

Have a look here:
http://msdn.microsoft.com/en-us/library/gg416513%28v=vs.98%29.aspx[^]
http://msdn.microsoft.com/en-us/library/dd410209%28v=vs.100%29.aspx[^]
A Beginner's Tutorial for Understanding Filters and Attributes in ASP.NET MVC[^]
http://www.asp.net/mvc/tutorials/hands-on-labs/aspnet-mvc-4-custom-action-filters[^]


这篇关于使用过滤器的主要优点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆