Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AttributeCollection Constructor (array<Attribute^>^)

 

Initializes a new instance of the AttributeCollection class.

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

public:
AttributeCollection(
	... array<Attribute^>^ attributes
)

Parameters

attributes
Type: array<System::Attribute^>^

An array of type Attribute that provides the attributes for this collection.

Exception Condition
ArgumentNullException

attributes is null.

The following code example creates a new AttributeCollection using the attributes on button1. It assumes that button1 has been created on a form.

AttributeCollection^ collection1;
collection1 = TypeDescriptor::GetAttributes( button1 );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft