AssociatedMetadataProvider AssociatedMetadataProvider 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
AssociatedMetadataProviderAssociatedMetadataProviderAssociatedMetadataProvider
Derived

Constructors

AssociatedMetadataProvider() AssociatedMetadataProvider() AssociatedMetadataProvider()

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

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) 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>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type)

Returns a list of properties for the model.

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor) GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

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

GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String) GetMetadataForProperty(Func<Object>, Type, String)

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

GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type) GetMetadataForType(Func<Object>, Type)

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

GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

Applies to