Share via


IRazorViewEngine.FindPage(ActionContext, String) Method

Definition

Finds the page with the given pageName using view locations and information from the context.

public:
 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
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.

Remarks

Use GetPage(String, String) when the absolute or relative path of the page is known. <seealso cref="M:Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine.FindView(Microsoft.AspNetCore.Mvc.ActionContext,System.String,System.Boolean)"></seealso>.

Applies to