1

我正在制作一个自定义 MVC html 帮助器,它在许多方面与内置的 ActionLink 帮助器相似。我注意到内置的 ActionLink 助手对 actionName 和 controllerName 参数有智能感知,我觉得这非常有用。我的问题是如何在我正在编写的自定义 html 助手中提供智能感知,它也有 actionName 和 controllerName 参数?这是我的帮手:

public static MvcHtmlString IconLink(this HtmlHelper helper, string glyphName, string actionName, string controllerName, object routeValues, object htmlAttributes)
{
   // Implementation
}

是否有某种属性可以用来使智能感知应用于某些参数?我错过了什么?

这是显示 actionName 参数的可用控制器操作的智能感知视频:http: //screencast.com/t/xWtaBYnp

4

0 回答 0