查找HTMLHelper,URLHelper和AJAXHelper类型的所有扩展方法

问题描述 投票:0回答:2

[寻找一种使用对象浏览器(在Visual Studio或其他工具中)的方法来查找为HTMLHelper,URLHelper和AJAXHelper定义的所有扩展方法。有什么想法吗?

asp.net-mvc asp.net-mvc-4 asp.net-mvc-3 asp.net-mvc-5 asp.net-mvc-2
2个回答
0
投票

Intellisense将在实例上填充可用的扩展方法,并从Helper类本身填充静态方法。

HtmlHelper Intellisense Instance Intellisense


0
投票

好吧,我知道了...

首先,打开对象浏览器并转到命令“编辑自定义分量集...”

enter image description here

然后添加MVC dll组件...

enter image description here

[确保浏览下拉菜单中选择了“自定义组件集”,并选择了“显示扩展成员” ...

enter image description here

然后在HtmlHelper上执行搜索,它将与为HtmlHelper数据类型定义的扩展方法一起出现

enter image description here

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.