共用方式為


<c> (Visual Basic)

表示描述內的文字為程序代碼。

語法

<c>text</c>  

參數

參數 說明
text 您想要以程式代碼表示的文字。

備註

<c> 標記可讓您指出應該將描述內的文字標記為程式碼。 使用 <code>,以將多行指定為程式碼。

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

範例

這個範例會 <c> 使用summary區段中的標籤指出這是 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

另請參閱