ViewPage<TModel>.Model Property

Gets the Model property of the associated ViewDataDictionary<TModel> object.

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

Syntax

'Declaration
Public ReadOnly Property Model As TModel
    Get
public TModel Model { get; }
public:
property TModel Model {
    TModel get ();
}

Property Value

Type: TModel
A reference to the data model.

Remarks

This property provides a convenient way to access the Model property of the ViewDataDictionary<TModel> object.

See Also

Reference

ViewPage<TModel> Class

System.Web.Mvc Namespace