Table of Contents

Class ViewMasterPage

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents the information that is needed to build a master view page.

public class ViewMasterPage : MasterPage
Inheritance
ViewMasterPage
Derived

Constructors

ViewMasterPage()

Initializes a new instance of the ViewMasterPage class.

public ViewMasterPage()

Properties

Ajax

Gets the AJAX script for the master page.

public AjaxHelper<object> Ajax { get; }

Property Value

AjaxHelper<object>

The AJAX script for the master page.

Html

Gets the HTML for the master page.

public HtmlHelper<object> Html { get; }

Property Value

HtmlHelper<object>

The HTML for the master page.

Model

Gets the model.

public object Model { get; }

Property Value

object

The model.

TempData

Gets the temporary data.

public TempDataDictionary TempData { get; }

Property Value

TempDataDictionary

The temporary data.

Url

Gets the URL.

public UrlHelper Url { get; }

Property Value

UrlHelper

The URL.

ViewBag

Gets the dynamic view-bag dictionary.

public dynamic ViewBag { get; }

Property Value

dynamic

The dynamic view-bag dictionary.

ViewContext

Gets the view context.

public ViewContext ViewContext { get; }

Property Value

ViewContext

The view context.

ViewData

Gets the view data.

public ViewDataDictionary ViewData { get; }

Property Value

ViewDataDictionary

The view data.

Writer

Gets the writer that is used to render the master page.

public HtmlTextWriter Writer { get; }

Property Value

HtmlTextWriter

The writer that is used to render the master page.