Dela via


PageContext Constructors

Definition

Overloads

PageContext()

Creates an empty PageContext.

PageContext(ActionContext)

Initializes a new instance of PageContext.

PageContext()

Source:
PageContext.cs
Source:
PageContext.cs
Source:
PageContext.cs

Creates an empty PageContext.

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

Remarks

The default constructor is provided for unit test purposes only.

Applies to

PageContext(ActionContext)

Source:
PageContext.cs
Source:
PageContext.cs
Source:
PageContext.cs

Initializes a new instance of 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)

Parameters

actionContext
ActionContext

The ActionContext.

Applies to