MemberDescriptor.CreateAttributeCollection Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a collection of attributes using the array of attributes passed to the constructor.

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

protected virtual AttributeCollection CreateAttributeCollection()

Return Value

Type: System.ComponentModel.AttributeCollection

A new AttributeCollection that contains the AttributeArray attributes.

This method is called from the Attributes property when there is no AttributeCollection for this member. If there are no attributes in the AttributeArray, this will return an empty AttributeCollection.

.NET Framework
Available since 1.1
Return to top