Sdílet prostřednictvím


AssociatedMetadataProvider.FilterAttributes Metoda

Definice

Umožňuje odvozeným třídám filtrovat seznam atributů.

protected:
 virtual System::Collections::Generic::IEnumerable<Attribute ^> ^ FilterAttributes(Type ^ containerType, System::ComponentModel::PropertyDescriptor ^ propertyDescriptor, System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes);
protected virtual System.Collections.Generic.IEnumerable<Attribute> FilterAttributes (Type containerType, System.ComponentModel.PropertyDescriptor propertyDescriptor, System.Collections.Generic.IEnumerable<Attribute> attributes);
abstract member FilterAttributes : Type * System.ComponentModel.PropertyDescriptor * seq<Attribute> -> seq<Attribute>
override this.FilterAttributes : Type * System.ComponentModel.PropertyDescriptor * seq<Attribute> -> seq<Attribute>
Protected Overridable Function FilterAttributes (containerType As Type, propertyDescriptor As PropertyDescriptor, attributes As IEnumerable(Of Attribute)) As IEnumerable(Of Attribute)

Parametry

containerType
Type

Typ kontejneru.

propertyDescriptor
PropertyDescriptor

Popisovač vlastnosti

attributes
IEnumerable<Attribute>

Atributy.

Návraty

IEnumerable<Attribute>

Seznam atributů.

Poznámky

Kód v AssociatedMetadataProvider základní třídě vrátí všechny atributy. Tato metoda umožňuje odvozeným třídám filtrovat atributy.

Platí pro