ViewDataDictionary(TModel).SetModel Method
Sets the data model to use for the view.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | An error occurred while the model was being set. |