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
'Usage
Dim instance As ViewPage 
Dim value As TModel

value = instance.Model
public TModel Model { get; }
public:
property TModel Model {
    TModel get ();
}
member Model : 'TModel
function get Model () : TModel

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