问题描述
我就捡起在:
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0"
type="System.Web.Routing.UrlRoutingModule"
preCondition="" />
什么是空的precondition如果有什么呢?
What does the empty precondition do if anything?
推荐答案
这是空的 preCondition
意味着一个模块或处理程序将始终无论执行。 .NET运行库版本,位数的应用程序池时,code是否管理与否,或可应用于任何其他适用的过滤条件。
An empty preCondition
means that a module or handler will always be executed regardless of the .NET runtime version, "bitness" of the application pool, whether the code is managed or not or any other applicable filtering conditions that can be applied.
如果在 preCondition
适用于处理程序,然后其他的过滤条件开始发挥作用,以及如路径
和动词
属性,以确定是否在处理器执行。
If the preCondition
is applied to a handler then other filtering conditions come into play as well such as the path
and verb
attributes to determine if the handler is executed.
有关pre-条件的更多信息,请参见:
For more information about pre-conditions see:
这篇关于Asp.net web.config中。如果没有任何一个空precondition吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!