Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ModelMetadata.ModelType Property

Gets the type of the model.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
function get ModelType () : Type

Property Value

Type: System.Type
The type of the model.

If the model came from a lambda expression, the model can be a null reference (Nothing in Visual Basic) and this property returns the type of the model.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.