AssociatedMetadataProvider.FilterAttributes Methode

Definitie

Hiermee kunnen afgeleide klassen de lijst met kenmerken filteren.

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)

Parameters

containerType
Type

Het type container.

propertyDescriptor
PropertyDescriptor

De eigenschapsdescriptor.

attributes
IEnumerable<Attribute>

De kenmerken.

Retouren

Een lijst met kenmerken.

Opmerkingen

De code in de AssociatedMetadataProvider basisklasse retourneert alle kenmerken. Met deze methode kunnen afgeleide klassen de kenmerken filteren.

Van toepassing op