<example> (Visual Basic)
Specifies an example for the member.
Syntax
<example>description</example>
Parameters
description
A description of the code sample.
Remarks
The <example>
tag lets you specify an example of how to use a method or other library member. This commonly involves using the <code> tag.
Compile with -doc to process documentation comments to a file.
Example
This example uses the <example>
tag to include an example for using the ID
field.
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
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.