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)

protected virtual IEnumerable<Attribute> FilterAttributes(
	Type containerType,
	PropertyDescriptor propertyDescriptor,
	IEnumerable<Attribute> attributes
)

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: