MemberDescriptor.CreateAttributeCollection Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.