Sdílet prostřednictvím


MemberDescriptor.CreateAttributeCollection Metoda

Definice

Vytvoří kolekci atributů pomocí pole atributů předaných konstruktoru.

protected:
 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

Návraty

Nový AttributeCollection , který obsahuje AttributeArray atributy.

Poznámky

Tato metoda je volána z Attributes vlastnosti, pokud není AttributeCollection pro tohoto člena. Pokud v objektu AttributeArraynejsou žádné atributy, vrátí se prázdný AttributeCollection.

Platí pro