Freigeben über


AssociatedMetadataProvider.CreateMetadata Method

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

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

Syntax

'Declaration
Protected MustOverride Function CreateMetadata ( _
    attributes As IEnumerable(Of Attribute), _
    containerType As Type, _
    modelAccessor As Func(Of Object), _
    modelType As Type, _
    propertyName As String _
) As ModelMetadata
protected abstract ModelMetadata CreateMetadata(
    IEnumerable<Attribute> attributes,
    Type containerType,
    Func<Object> modelAccessor,
    Type modelType,
    string propertyName
)
protected:
virtual ModelMetadata^ CreateMetadata(
    IEnumerable<Attribute^>^ attributes, 
    Type^ containerType, 
    Func<Object^>^ modelAccessor, 
    Type^ modelType, 
    String^ propertyName
) abstract

Parameters

  • containerType
    Type: System.Type
    The type of the container.

Return Value

Type: System.Web.Mvc.ModelMetadata
The model metadata for the property.

See Also

Reference

AssociatedMetadataProvider Class

System.Web.Mvc Namespace