Editar

Compartir a través de


ModelMetadataProvider.GetMetadataForProperty Method

Definition

Returns metadata for the specified property.

public:
 abstract System::Web::ModelBinding::ModelMetadata ^ GetMetadataForProperty(Func<System::Object ^> ^ modelAccessor, Type ^ containerType, System::String ^ propertyName);
public abstract System.Web.ModelBinding.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, string propertyName);
abstract member GetMetadataForProperty : Func<obj> * Type * string -> System.Web.ModelBinding.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 name of the property.

Returns

Metadata for the specified property.

Applies to