Export (0) Print
Expand All

ModelMetadataProvider.GetMetadataForType Method

.NET Framework 4

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 ModelMetadata GetMetadataForType(
	Func<Object> modelAccessor,
	Type modelType
)

Parameters

modelAccessor
Type: System.Func<Object>
The model accessor.
modelType
Type: System.Type
They type of the model.

Return Value

Type: System.Web.Mvc.ModelMetadata
The metadata.

Community Additions

ADD
Show:
© 2014 Microsoft