AssociatedMetadataProvider.GetMetadataForProperty Method (Func(Object), Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.

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

protected function GetMetadataForProperty(
	modelAccessor : Func<Object>, 
	containerType : Type, 
	propertyDescriptor : PropertyDescriptor
) : ModelMetadata

Parameters

modelAccessor
Type: System.Func(Object)

The model accessor.

containerType
Type: System.Type

The type of the container.

propertyDescriptor
Type: System.ComponentModel.PropertyDescriptor

The property descriptor

Return Value

Type: System.Web.Mvc.ModelMetadata
The metadata for the specified property using the container type and property descriptor.
Show: