This documentation is archived and is not being maintained.

AttributeUsageAttribute.AllowMultiple Property

Gets or sets a Boolean value indicating whether more than one instance of the indicated attribute can be specified for a single program element.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public bool AllowMultiple { get; set; }
/** @property */
public boolean get_AllowMultiple ()

/** @property */
public void set_AllowMultiple (boolean value)

public function get AllowMultiple () : boolean

public function set AllowMultiple (value : boolean)

Property Value

true if more than one instance is allowed to be specified; otherwise, false. The default is false.

An attribute that can be specified more than once for a program element is called a multi-use attribute. An attribute that can be specified only once is called a single-use attribute.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0