Share via


ModelMetadataProvider.GetMetadataForType Method

Gets metadata for the specified model accessor and model type.

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

Syntax

'Declaration
Public MustOverride Function GetMetadataForType ( _
    modelAccessor As Func(Of Object), _
    modelType As Type _
) As ModelMetadata
public abstract ModelMetadata GetMetadataForType(
    Func<Object> modelAccessor,
    Type modelType
)
public:
virtual ModelMetadata^ GetMetadataForType(
    Func<Object^>^ modelAccessor, 
    Type^ modelType
) abstract

Parameters

Return Value

Type: System.Web.Mvc.ModelMetadata
The metadata.

See Also

Reference

ModelMetadataProvider Class

System.Web.Mvc Namespace