Name

ParamArrayAttribute

Synopsis

This attribute is used on a method to indicate that it can accept a variable number of parameters. The method has an array as its last parameter, and the list of values passed to the method are stored in the array. In VB.NET, use the ParamArray keyword to create methods with a variable number of arguments, rather than using this attribute directly.

Public NotInheritable Class ParamArrayAttribute : Inherits Attribute
' Public Constructors
   Public Sub New() 
End Class

Hierarchy

ObjectAttribute ParamArrayAttribute

Valid On

Parameter

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.