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.

[Visual Basic]
Public Property AllowMultiple As Boolean
public bool AllowMultiple {get; set;}
public: __property bool get_AllowMultiple();
public: __property void set_AllowMultiple(bool);
public function get AllowMultiple() : Boolean;
public function set AllowMultiple(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.


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, Common Language Infrastructure (CLI) Standard

See Also

AttributeUsageAttribute Class | AttributeUsageAttribute Members | System Namespace | Attribute