Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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:
© 2015 Microsoft