2012-03-02 61 views
1

我創建了我的自定義Ajax.ActionLink助手(見下文)。我還在代碼上方寫了一個摘要,但沒有顯示它應該顯示的內容。我的自定義擴展助手的摘要沒有顯示

這是我所看到的:

enter image description here

這裏是它應該出現一個例子:

enter image description here

1號問題:正如你所看到的,彙總未使用。任何想法?

第二個問題:通常摘要(最小化時)應該出現這樣的:

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 
     ); 
    } 

謝謝。

回答

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> 
+0

你是對的,但即使我糾正它,當摘要最小化(點擊+號在代碼窗口左側)它不顯示如預期的那樣(參見我的問題2)。任何想法? – Bronzato 2012-03-02 09:13:37

+0

之前你有一個領先的'// //'。嘗試刪除。 – 2012-03-02 09:15:54

+0

是的,我刪除了這個主導//但是當最小化時,我仍然有///

...(在一個signel行),我想...(在方法聲明的左邊)。可能嗎? – Bronzato 2012-03-02 09:24:02