Bagikan melalui


<paramref> (Visual Basic)

Memformat kata sebagai parameter.

Sintaksis

<paramref name="name"/>  

Parameter-parameternya

name
Nama parameter yang akan dirujuk. Sertakan nama dalam tanda kutip ganda (" ").

Komentar

Tag <paramref> memberi Anda cara untuk menunjukkan bahwa kata adalah parameter. File XML dapat diproses untuk memformat parameter ini dengan beberapa cara yang berbeda.

Kompilasi dengan -doc untuk memproses komentar dokumentasi ke file.

Contoh

Contoh ini menggunakan <paramref> tag untuk merujuk ke id parameter .

''' <param name="id">The ID of the record to update.</param>
''' <remarks>Updates the record <paramref name="id"/>.
''' <para>Use <see cref="DoesRecordExist"/> to verify that
''' the record exists before calling this method.</para>
''' </remarks>
Public Sub UpdateRecord(ByVal id As Integer)
    ' Code goes here.
End Sub
''' <param name="id">The ID of the record to check.</param>
''' <returns><c>True</c> if <paramref name="id"/> exists,
''' <c>False</c> otherwise.</returns>
''' <remarks><seealso cref="UpdateRecord"/></remarks>
Public Function DoesRecordExist(ByVal id As Integer) As Boolean
    ' Code goes here.
End Function

Lihat juga