ModelMetadataProvider.GetMetadataForProperty 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

The type of the container.

propertyName
String

The property to get the metadata model for.

Returns

A ModelMetadata object for the property.

Applies to