ViewMasterPage<TModel> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示建置強型別主版檢視頁面所需的資訊。
public class ViewMasterPage<TModel> : System.Web.Mvc.ViewMasterPage
type ViewMasterPage<'Model> = class
inherit ViewMasterPage
Public Class ViewMasterPage(Of TModel)
Inherits ViewMasterPage
類型參數
- TModel
模型的型別。
- 繼承
建構函式
ViewMasterPage<TModel>() |
初始化 ViewMasterPage<TModel> 類別的新執行個體。 |
屬性
Ajax |
取得主版頁面的 AJAX 指令碼。 |
Html |
取得主版頁面的 HTML。 |
Model |
取得模型。 |
TempData |
取得暫存資料。 (繼承來源 ViewMasterPage) |
Url |
取得 URL。 (繼承來源 ViewMasterPage) |
ViewBag |
取得動態檢視包字典。 (繼承來源 ViewMasterPage) |
ViewContext |
取得檢視內容。 (繼承來源 ViewMasterPage) |
ViewData |
取得檢視資料。 |
Writer |
取得用來呈現主版頁面的寫入器。 (繼承來源 ViewMasterPage) |