PageContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PageContext() |
Creates an empty PageContext. |
PageContext(ActionContext) |
Initializes a new instance of PageContext. |
PageContext()
- 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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for