ControllerContext 類別

定義

與控制器目前要求相關聯的內容。

public ref class ControllerContext : Microsoft::AspNetCore::Mvc::ActionContext
public class ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext
type ControllerContext = class
    inherit ActionContext
Public Class ControllerContext
Inherits ActionContext
繼承
ControllerContext

建構函式

ControllerContext()

建立新的 ControllerContext

ControllerContext(ActionContext)

建立新的 ControllerContext

屬性

ActionDescriptor

取得或設定 ControllerActionDescriptor 與目前要求相關聯的 。

HttpContext

取得或設定 HttpContext 目前要求的 。

(繼承來源 ActionContext)
ModelState

取得 ModelStateDictionary

(繼承來源 ActionContext)
RouteData

取得或設定 RouteData 目前要求的 。

(繼承來源 ActionContext)
ValueProviderFactories

取得或設定目前要求的實例清單 IValueProviderFactory

適用於