Model Property
Collapse the table of content
Expand the table of content

ViewPage<TModel>.Model Property

Visual Studio 2010

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

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

public TModel Model { get; }

Property Value

Type: TModel
A reference to the data model.

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

Community Additions

© 2016 Microsoft