CachedAssociatedMetadataProvider<TModelMetadata>::GetMetadataForProperty Method (Func<Object>, Type, String)

Returns the metadata for the specified property.

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

public:
virtual ModelMetadata^ GetMetadataForProperty(
	Func<Object^>^ modelAccessor, 
	Type^ containerType, 
	String^ propertyName
) override sealed

Parameters

modelAccessor
Type: System::Func<Object>

The model accessor.

containerType
Type: System::Type

The container type.

propertyName
Type: System::String

The property name.

Return Value

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