Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

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.

© 2015 Microsoft