Share via


ViewDataDictionary<TModel>.Model Property

Gets or sets the model.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property Model As TModel
    Get
    Set
public TModel Model { get; set; }
public:
property TModel Model {
    TModel get ();
    void set (TModel value);
}

Property Value

Type: TModel
A reference to the data model.

See Also

Reference

ViewDataDictionary<TModel> Class

System.Web.Mvc Namespace