EmptyModelMetadataProvider Class

 

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

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


Public Class EmptyModelMetadataProvider
	Inherits AssociatedMetadataProvider

NameDescription
System_CAPS_pubmethodEmptyModelMetadataProvider()

Initializes a new instance of the EmptyModelMetadataProvider class.

NameDescription
System_CAPS_protmethodCreateMetadata(IEnumerable(Of Attribute), Type, Func(Of Object), Type, String)
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFilterAttributes(Type, PropertyDescriptor, IEnumerable(Of Attribute))

Gets a list of attributes.(Inherited from AssociatedMetadataProvider.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMetadataForProperties(Object, Type)

Returns a list of properties for the model.(Inherited from AssociatedMetadataProvider.)

System_CAPS_protmethodGetMetadataForProperty(Func(Of Object), Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.(Inherited from AssociatedMetadataProvider.)

System_CAPS_pubmethodGetMetadataForProperty(Func(Of Object), Type, String)

Returns the metadata for the specified property using the container type and property name.(Inherited from AssociatedMetadataProvider.)

System_CAPS_pubmethodGetMetadataForType(Func(Of Object), Type)

Returns the metadata for the specified property using the type of the model.(Inherited from AssociatedMetadataProvider.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetTypeDescriptor(Type)

Returns the type descriptor from the specified type.(Inherited from AssociatedMetadataProvider.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

MVC requires that a data model be configured to use a metadata provider. Set Current to null to set the current metadata provider to the EmptyModelMetadataProvider provider.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: