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>.GetMetadataForProperty Method (Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property.

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

protected override sealed ModelMetadata GetMetadataForProperty(
	Func<Object> modelAccessor,
	Type containerType,
	PropertyDescriptor propertyDescriptor
)

Parameters

modelAccessor
Type: System.Func<Object>

The model accessor.

containerType
Type: System.Type

The container type.

propertyDescriptor
Type: System.ComponentModel.PropertyDescriptor

The property descriptor.

Return Value

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