Export (0) Print
Expand All

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
[C#]
public bool AllowMultiple {get; set;}
[C++]
public: __property bool get_AllowMultiple();
public: __property void set_AllowMultiple(bool);
[JScript]
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft