Export (0) Print
Expand All

AssociatedMetadataProvider.GetMetadataForType Method

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

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

public override ModelMetadata GetMetadataForType(
	Func<Object> modelAccessor,
	Type modelType
)

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
The metadata for the specified property using the type of the model.
Show:
© 2014 Microsoft