Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Model Property
Collapse the table of content
Expand the table of content

ViewPage<TModel>.Model Property

.NET Framework 4

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

© 2015 Microsoft