AssociatedMetadataProvider.CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) AssociatedMetadataProvider.CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) AssociatedMetadataProvider.CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String) Method

Definition

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

protected abstract System.Web.Mvc.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
abstract member CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
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

Parameters

attributes
IEnumerable<Attribute>

The set of attributes.

containerType
Type Type Type

The type of the container.

modelAccessor
Func<Object>

The model accessor.

modelType
Type Type Type

The type of the model.

propertyName
String String String

The name of the property.

Returns

The model metadata for the property.

Applies to