EmptyModelMetadataProvider EmptyModelMetadataProvider EmptyModelMetadataProvider Class

Definition

Provides an empty metadata provider for data models that do not require metadata.

public class EmptyModelMetadataProvider : System.Web.Mvc.AssociatedMetadataProvider
type EmptyModelMetadataProvider = class
    inherit AssociatedMetadataProvider
Public Class EmptyModelMetadataProvider
Inherits AssociatedMetadataProvider
Inheritance

Constructors

EmptyModelMetadataProvider() EmptyModelMetadataProvider() EmptyModelMetadataProvider()

Initializes a new instance of the EmptyModelMetadataProvider 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)

Creates a new instance of the ModelMetadata class.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>) FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type) GetMetadataForProperties(Object, Type)

Returns a list of properties for the model.

(Inherited from AssociatedMetadataProvider)
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.

(Inherited from AssociatedMetadataProvider)
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.

(Inherited from AssociatedMetadataProvider)
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.

(Inherited from AssociatedMetadataProvider)
GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Applies to