The custom list of predefined values is called Enum (enumeration). The parameter can be made Optional, in which case you have to define a default value. The decriptions are called "Xml documentation" and works like special code comments that integrates with the Intellisense help system, see help topic How to: Create XML Documentation in Visual Basic
VB.NET:
Private Enum Customlist
OptionA
OptionB
End Enum
''' <summary>
''' This method does nothing.
''' </summary>
''' <param name="param">An optional option from Customlist options</param>
''' <remarks></remarks>
Private Sub Method(Optional ByVal param As Customlist = Customlist.OptionA)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.