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

ViewResult Properties

The ViewResult type exposes the following members.

  Name Description
Public property MasterName Gets the name of the master view (such as a master page or template) to use when the view is rendered.
Public property Model Gets the view data model. (Inherited from ViewResultBase.)
Public property TempData Gets or sets the TempDataDictionary object for this result. (Inherited from ViewResultBase.)
Public property View Gets or sets the IView object that is rendered to the response. (Inherited from ViewResultBase.)
Public property ViewBag Gets the view bag. (Inherited from ViewResultBase.)
Public property ViewData Gets or sets the view data ViewDataDictionary object for this result. (Inherited from ViewResultBase.)
Public property ViewEngineCollection Gets or sets the collection of view engines that are associated with this result. (Inherited from ViewResultBase.)
Public property ViewName Gets or sets the name of the view to render. (Inherited from ViewResultBase.)
Top
Show:
© 2015 Microsoft