NDoc 用户指南   [回目录] NDoc 1.3

<value>

[此文档为预发布版本,在未来版本中有可能改变。]

<value> 标记用于说明属性的值。

<value>property-description</value>

其中:

property-description
对属性值的说明。

应用于

属性。

备注

按照约定,总是应该为属性书写 <value> 标记。

示例

[C#]
/// text for class MyClass
public class MyClass
{
   /// <summary>MyProperty is a property in the MyClass class.</summary>
   /// <value>A string containing the text "MyProperty String".</value>
   public string MyProperty()
   {
       get
       {
           return "MyProperty String";
       }
   }

}

请参见

标记用法 | NDoc 支持的标记 | <summary> | Microsoft 的定义