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)

'Declaration
Public ReadOnly Property ModelType As Type 
	Get
'Usage
Dim instance As ModelMetadata 
Dim value As Type 

value = instance.ModelType

Property Value

Type: System.Type
The type of the model.

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

Show:
© 2014 Microsoft