.NET Framework Class Library  

ParamArrayAttribute Class

Indicates that the method will allow a variable number of arguments in its invocation. This class cannot be inherited.

For a list of all members of this type, see ParamArrayAttribute Members.

System.Object
   System.Attribute
      System.ParamArrayAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Parameter)>
NotInheritable Public Class ParamArrayAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Parameter)]
public sealed class ParamArrayAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Parameter)]
public __gc __sealed class ParamArrayAttribute : public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Parameter)
class ParamArrayAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

A parameter array allows the specification of an unknown number of arguments. A parameter array must be the last parameter in a formal parameter list, and it must be a single-dimension array. A parameter array permits arguments to a method to be specified in two ways:

For more information about using attributes, see Extending Metadata Using Attributes.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework - Windows CE .NET

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ParamArrayAttribute Members | System Namespace | Attribute | Extending Metadata Using Attributes