AssociatedMetadataProvider.FilterAttributes Metod

Definition

Gör det möjligt för härledda klasser att filtrera listan över attribut.

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)

Parametrar

containerType
Type

Containertypen.

propertyDescriptor
PropertyDescriptor

Egenskapsbeskrivningen.

attributes
IEnumerable<Attribute>

Attributen.

Returer

En lista över attribut.

Kommentarer

Koden i basklassen AssociatedMetadataProvider returnerar alla attribut. Med den här metoden kan härledda klasser filtrera attributen.

Gäller för