AssociatedMetadataProvider.GetMetadataForType(Func<Object>, Type) AssociatedMetadataProvider.GetMetadataForType(Func<Object>, Type) AssociatedMetadataProvider.GetMetadataForType(Func<Object>, Type) Method

Definition

Returns the metadata for the specified property using the type of the model.

public override System.Web.Mvc.ModelMetadata GetMetadataForType (Func<object> modelAccessor, Type modelType);
override this.GetMetadataForType : Func<obj> * Type -> System.Web.Mvc.ModelMetadata
Public Overrides Function GetMetadataForType (modelAccessor As Func(Of Object), modelType As Type) As ModelMetadata

Parameters

modelAccessor
Func<Object>

The model accessor.

modelType
Type Type Type

The type of the model.

Returns

The metadata for the specified property using the type of the model.

Applies to