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 final function CreateMetadata(
	attributes : IEnumerable<Attribute>, 
	containerType : Type, 
	modelAccessor : Func<Object>, 
	modelType : Type, 
	propertyName : String
) : ModelMetadata

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: