共用方式為


<程式代碼> (Visual Basic)

表示文字是多行程序代碼。

語法

<code>content</code>  

參數

content
要標示為程式代碼的文字。

備註

<code>使用標記,以程式代碼表示多行。 使用 <c> 表示描述內的文字應標示為程序代碼。

使用 -doc 編譯以處理檔案的檔批注。

範例

這個範例會使用程式 <代碼> 標記來包含使用欄位的 ID 範例程序代碼。

Public Class Employee
    ''' <remarks>
    ''' <example> This sample shows how to set the <c>ID</c> field.
    ''' <code>
    ''' Dim alice As New Employee
    ''' alice.ID = 1234
    ''' </code>
    ''' </example>
    ''' </remarks>
    Public ID As Integer
End Class

另請參閱