Dela via


RazorViewEngine.GetPage(String, String) Method

Definition

Gets the page with the given pagePath, relative to executingFilePath unless pagePath is already absolute.

public:
 virtual Microsoft::AspNetCore::Mvc::Razor::RazorPageResult GetPage(System::String ^ executingFilePath, System::String ^ pagePath);
public Microsoft.AspNetCore.Mvc.Razor.RazorPageResult GetPage (string executingFilePath, string pagePath);
abstract member GetPage : string * string -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
override this.GetPage : string * string -> Microsoft.AspNetCore.Mvc.Razor.RazorPageResult
Public Function GetPage (executingFilePath As String, pagePath As String) As RazorPageResult

Parameters

executingFilePath
String

The absolute path to the currently-executing page, if any.

pagePath
String

The path to the page.

Returns

The RazorPageResult of locating the page.

Implements

Applies to