AssociatedMetadataProvider Class

Definition

Provides an abstract class to implement a metadata provider.

public abstract class AssociatedMetadataProvider : System.Web.Mvc.ModelMetadataProvider
type AssociatedMetadataProvider = class
    inherit ModelMetadataProvider
Public MustInherit Class AssociatedMetadataProvider
Inherits ModelMetadataProvider
Inheritance
AssociatedMetadataProvider
Derived

Constructors

AssociatedMetadataProvider()

Called from constructors in a derived class to initialize the AssociatedMetadataProvider class.

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

When overridden in a derived class, creates the model metadata for the property.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

GetMetadataForProperties(Object, Type)

Returns a list of properties for the model.

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.

GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property using the container type and property name.

GetMetadataForType(Func<Object>, Type)

Returns the metadata for the specified property using the type of the model.

GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

Applies to