AssociatedMetadataProvider.FilterAttributes Methode

Definition

Ermöglicht abgeleiteten Klassen, die Attributliste zu filtern.

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)

Parameter

containerType
Type

Der Typ des Containers.

propertyDescriptor
PropertyDescriptor

Der Eigenschaftendeskriptor.

attributes
IEnumerable<Attribute>

Die Attribute.

Gibt zurück

Eine Liste von Attributen.

Hinweise

Der Code in der AssociatedMetadataProvider Basisklasse gibt alle Attribute zurück. Mit dieser Methode können abgeleitete Klassen die Attribute filtern.

Gilt für: