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

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)

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

Parameters

attributes
Type: System.Collections.Generic.IEnumerable<Attribute>
The set of attributes.
containerType
Type: System.Type
The type of the container.
modelAccessor
Type: System.Func<Object>
The model accessor.
modelType
Type: System.Type
The type of the model.
propertyName
Type: System.String
The name of the property.

Return Value

Type: System.Web.Mvc.ModelMetadata
The model metadata for the property.
Show:
© 2015 Microsoft