RazorViewEngine.FindPage(ActionContext, String) Method
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.
Finds the page with the given pageName
using view locations and information from the
context
.
public:
virtual Microsoft::AspNetCore::Mvc::Razor::RazorPageResult FindPage(Microsoft::AspNetCore::Mvc::ActionContext ^ context, System::String ^ pageName);
public Microsoft.AspNetCore.Mvc.Razor.RazorPageResult FindPage (Microsoft.AspNetCore.Mvc.ActionContext context, string pageName);
abstract member FindPage : Microsoft.AspNetCore.Mvc.ActionContext * string -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
override this.FindPage : Microsoft.AspNetCore.Mvc.ActionContext * string -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
Public Function FindPage (context As ActionContext, pageName As String) As RazorPageResult
Parameters
- context
- ActionContext
The ActionContext.
- pageName
- String
The name or path of the page.
Returns
The RazorPageResult of locating the page.