/// <summary>
/// <para>Here's how you could make a second paragraph in a description. <see cref="System.Console.WriteLine(System.String)"/> for information about output statements.</para>
/// <para>Returns the status of system in JSON format</para>
/// <para>URI format to call this GET API</para>
/// <para>Note that the Timestamp MUST be in the format yyyyMMddHHmmssfff</para>
/// </summary>
/// <param name="timestamp"></param>
/// <returns></returns>
public IHttpActionResult Get(string timestamp)
上面是放置摘要的代码。即使我使用的是<para>
,该描述仍在Web API帮助部分的连续行中显示,如屏幕截图所示。
我已经检查了生成的XML文件,看起来也不错,如下所示:
<member name="M:WebApplication.Controllers.MyDataController.Get(System.String)">
<summary>
<para>Here's how you could make a second paragraph in a description. <see cref="M:System.Console.WriteLine(System.String)"/> for information about output statements.</para>
<para>Returns the status of system in JSON format</para>
<para>URI format to call this GET API</para>
<para>Note that the Timestamp MUST be in the format yyyyMMddHHmmssfff</para>
</summary>
<param name="timestamp"></param>
<returns></returns>
</member>