ModelBindingContext.ModelType Property
.NET Framework (current version)
Gets the type of the model.
Assembly: System.Web (in System.Web.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | Model metadata must be set before accessing this property. |
.NET Framework
Available since 4.5
Available since 4.5
Show: