指定屬性的描述。
語法
<value>property-description</value>
參數
property-description
屬性的描述。
備註
使用標記 <value> 來描述屬性。 請注意,當您在Visual Studio開發環境中使用程式代碼精靈新增屬性時,它會新增 <新屬性的摘要> 標記。 然後,您應該手動新增 <value> 標記來描述 屬性所代表的值。
使用 -doc 編譯以處理檔案的檔批注。
範例
此範例會 <value> 使用標記來描述屬性所保留的值 Counter 。
''' <summary>
''' Resets the value of the <c>Counter</c> field.
''' </summary>
Public Sub ResetCounter()
counterValue = 0
End Sub
Private counterValue As Integer = 0
''' <summary>
''' Returns the number of times Counter was called.
''' </summary>
''' <value>Number of times Counter was called.</value>
Public ReadOnly Property Counter() As Integer
Get
counterValue += 1
Return counterValue
End Get
End Property