MemberDescriptor.CreateAttributeCollection Method


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

 virtual System::ComponentModel::AttributeCollection ^ CreateAttributeCollection();
protected virtual System.ComponentModel.AttributeCollection CreateAttributeCollection ();
abstract member CreateAttributeCollection : unit -> System.ComponentModel.AttributeCollection
override this.CreateAttributeCollection : unit -> System.ComponentModel.AttributeCollection
Protected Overridable Function CreateAttributeCollection () As 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.

Applies to