AssociatedMetadataProvider.FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) Método

Definição

Habilita classes derivadas a filtrar a lista de atributos.Enables derived classes to filter the list of attributes.

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)

Parâmetros

containerType
Type

O tipo do recipiente.The type of the container.

propertyDescriptor
PropertyDescriptor

O descritor da propriedade.The property descriptor.

attributes
IEnumerable<Attribute>

Os atributos.The attributes.

Retornos

IEnumerable<Attribute>

Uma lista de atributos.A list of attributes.

Comentários

O código na AssociatedMetadataProvider classe base retorna todos os atributos.The code in the AssociatedMetadataProvider base class returns all attributes. Esse método permite que as classes derivadas filtrem os atributos.This method lets derived classes filter the attributes.

Aplica-se a