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.

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

public:
property bool AllowMultiple {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft