AssociatedMetadataProvider.FilterAttributes Method (Type, PropertyDescriptor, IEnumerable<Attribute>)

.NET Framework (current version)
 

Enables derived classes to filter the list of attributes.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

abstract FilterAttributes : 
        containerType:Type *
        propertyDescriptor:PropertyDescriptor *
        attributes:IEnumerable<Attribute> -> IEnumerable<Attribute>
override FilterAttributes : 
        containerType:Type *
        propertyDescriptor:PropertyDescriptor *
        attributes:IEnumerable<Attribute> -> IEnumerable<Attribute>

Parameters

containerType
Type: System.Type

The type of the container.

propertyDescriptor
Type: System.ComponentModel.PropertyDescriptor

The property descriptor.

attributes
Type: System.Collections.Generic.IEnumerable<Attribute>

The attributes.

Return Value

Type: System.Collections.Generic.IEnumerable<Attribute>

A list of attributes.

The code in the AssociatedMetadataProvider base class returns all attributes. This method lets derived classes filter the attributes.

.NET Framework
Available since 4.5
Return to top
Show: