Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModelMetadata.ModelType Property


Gets the type of the model.

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

public Type ModelType { get; }

Property Value

Type: System.Type

The type of the model.

If the model came from a lambda expression, the model can be null and this property returns the type of the model.

Return to top
© 2015 Microsoft