ViewDataDictionary<TModel>.SetModel Method
Visual Studio 2010
Sets the data model to use for the view.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- value
- Type: System.Object
The data model to use for the view.
| Exception | Condition |
|---|---|
| InvalidOperationException | An error occurred while the model was being set. |
Community Additions
ADD
Show: