ModelMetadataProvider.GetMetadataForProperty(Func<Object>, Type, String) ModelMetadataProvider.GetMetadataForProperty(Func<Object>, Type, String) ModelMetadataProvider.GetMetadataForProperty(Func<Object>, Type, String) Method

Definition

Gets metadata for the specified property.

public abstract System.Web.Mvc.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, string propertyName);
abstract member GetMetadataForProperty : Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Public MustOverride Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyName As String) As ModelMetadata

Parameters

modelAccessor
Func<Object>

The model accessor.

containerType
Type Type Type

The type of the container.

propertyName
String String String

The property to get the metadata model for.

Returns

Applies to