ControllerBase 類別

定義

表示所有 MVC 控制器的基底類別。

public abstract class ControllerBase : System.Web.Mvc.IController
type ControllerBase = class
    interface IController
Public MustInherit Class ControllerBase
Implements IController
繼承
ControllerBase
衍生
實作

建構函式

ControllerBase()

初始化 ControllerBase 類別的新執行個體。

屬性

ControllerContext

取得或設定控制器內容。

TempData

取得或設定暫存資料的字典。

ValidateRequest

取得或設定值,這個值表示此要求是否已啟用要求驗證。

ValueProvider

取得或設定控制器的值提供者。

ViewBag

取得動態檢視資料字典。

ViewData

取得或設定檢視資料的字典。

方法

Execute(RequestContext)

執行指定的要求內容。

ExecuteCore()

執行要求。

Initialize(RequestContext)

初始化指定的要求內容。

明確介面實作

IController.Execute(RequestContext)

執行指定的要求內容。

適用於