我的自定义扩展帮助程序摘要未显示

时间:2012-03-02 09:04:23

标签: asp.net

我创建了自定义的Ajax.ActionLink助手(见下文)。我还在我的代码上面写了一个摘要,但是没有显示它应该是。

以下是我看到的内容:

enter image description here

以下是它应该如何显示的示例:

enter image description here

第一个问题:如您所见,未使用摘要。有什么想法吗?

第二个问题:通常情况下,摘要(最小化时)应如下所示:

enter image description here

但是我看起来像这样:

enter image description here

有什么想法吗?

    //
    // Summary:
    //     Returns an anchor element that contains the URL to the specified action method;
    //     when the action link is clicked, the action method is invoked asynchronously
    //     by using JavaScript.
    //
    // Parameters:
    //   ajaxHelper:
    //     The AJAX helper.
    //
    //   actionName:
    //     The name of the action method.
    //
    //   routeValues:
    //     An object that contains the parameters for a route. The parameters are retrieved
    //     through reflection by examining the properties of the object. This object
    //     is typically created by using object initializer syntax.
    //
    //   ajaxOptions:
    //     An object that provides options for the asynchronous request.
    //
    //   htmlAttributes:
    //     An object that contains the HTML attributes to set for the element.
    //
    // Returns:
    //     An anchor element.
    public static IHtmlString ActionLink(this AjaxHelper ajaxHelper, string actionName, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes)
    {
        // Allow to have an ActionLink without any text link >> used for buttons with icon only
        return ajaxHelper.ActionLink(
            " ",
            actionName,                
            routeValues,
            ajaxOptions,
            htmlAttributes
        );
    } 

感谢。

1 个答案:

答案 0 :(得分:0)

这看起来不像有效XML Document Comment

应该是表格

/// <summary>
///     Returns an anchor element that contains the URL to the specified action method;
///     when the action link is clicked, the action method is invoked asynchronously
///     by using JavaScript.
/// </summary>
/// <param name="ajaxHelper">The AJAX helper.</param>
/// <returns>An anchor element</returns>