語言

ViewLocationExpanderContext 類別

定義

的內容,包含 的資訊 IViewLocationExpander 。

public ref class ViewLocationExpanderContext
public class ViewLocationExpanderContext
type ViewLocationExpanderContext = class
Public Class ViewLocationExpanderContext
繼承
ViewLocationExpanderContext

建構函式

名稱 Description
ViewLocationExpanderContext(ActionContext, String, String, String, Boolean)

初始化 ViewLocationExpanderContext 的新執行個體。

ViewLocationExpanderContext(ActionContext, String, String, String, String, Boolean)

初始化 ViewLocationExpanderContext 的新執行個體。

屬性

名稱 Description
ActionContext

ActionContext取得目前執行動作的 。

AreaName

取得區功能變數名稱稱。

ControllerName

取得控制器名稱。

IsMainPage

判斷找到的頁面是否為動作的主頁面。

PageName

取得頁面名稱。 從 Razor Pages 架構轉譯 Page 時,這會是路由值的值 page 。 如果將檢視轉譯為控制器的結果,這個值將會是 null 。

Values

取得或設定 IDictionary<TKey,TValue> 填入值做為 的一 PopulateValues(ViewLocationExpanderContext) 部分。

ViewName

取得檢視名稱。

適用於