Share via


PageContext 建構函式

定義

多載

PageContext()

建立空的 PageContext

PageContext(ActionContext)

初始化 PageContext 的新執行個體。

PageContext()

來源:
PageContext.cs
來源:
PageContext.cs

建立空的 PageContext

public:
 PageContext();
public PageContext ();
Public Sub New ()

備註

預設建構函式僅供單元測試之用。

適用於

PageContext(ActionContext)

來源:
PageContext.cs
來源:
PageContext.cs

初始化 PageContext 的新執行個體。

public:
 PageContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext);
public PageContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext);
new Microsoft.AspNetCore.Mvc.RazorPages.PageContext : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.RazorPages.PageContext
Public Sub New (actionContext As ActionContext)

參數

actionContext
ActionContext

ActionContext

適用於