AssociatedMetadataProvider.FilterAttributes Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.