CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Method

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

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

protected override sealed ModelMetadata CreateMetadata(
	IEnumerable<Attribute> attributes,
	Type containerType,
	Func<Object> modelAccessor,
	Type modelType,
	string propertyName
)

Parameters

attributes
Type: System.Collections.Generic.IEnumerable<Attribute>

The attributes.

containerType
Type: System.Type

The container type.

modelAccessor
Type: System.Func<Object>

The model accessor.

modelType
Type: System.Type

The model type.

propertyName
Type: System.String

The property name.

Return Value

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