Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

ParamArray Attribute

Class

System.ParamArrayAttribute

Applies To

Parameter

Constructor

New( )

Properties

None defined

Description

The <ParamArray> attribute indicates that the parameter represents a parameter array, which can support a variable number of arguments.

The same effect is achieved by using the ParamArray keyword in a function or subroutine declaration. In fact, the ParamArray keyword is converted into the <ParamArray> attribute during a compile.

If you do use the attribute, it must appear as <ParamArrayAttribute> rather than as <ParamArray>, since ParamArray is a Visual Basic keyword.

Категории