ModelMetadataProvider.GetMetadataForType Method

Gets metadata for the specified model accessor and model type.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public abstract function GetMetadataForType(
	modelAccessor : Func<Object>, 
	modelType : Type
) : ModelMetadata

Parameters

modelAccessor
Type: System.Func(Object)

The model accessor.

modelType
Type: System.Type

The type of the model.

Return Value

Type: System.Web.Mvc.ModelMetadata
A ModelMetadata object for the specified model accessor and model type.
Show: