MemberDescriptor.CreateAttributeCollection Metódus

Definíció

Attribútumgyűjteményt hoz létre a konstruktornak átadott attribútumok tömbjének használatával.

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

Válaszok

Az attribútumokat tartalmazó AttributeCollection újAttributeArray.

Megjegyzések

Ezt a metódust akkor hívja meg a Attributes tulajdonság, ha nincs AttributeCollection a tag számára. Ha nincsenek attribútumok a AttributeArrayfájlban, akkor ez egy üres AttributeCollectionértéket ad vissza.

A következőre érvényes: