Share via


RazorViewEngine.FindPage(ActionContext, String) Method

Definition

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

pageName
String

The name or path of the page.

Returns

The RazorPageResult of locating the page.

Implements

Applies to