AssociatedMetadataProvider.GetMetadataForType 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

The type of the model.

Returns

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

Applies to