Delen via


IRazorViewEngine.GetPage(String, String) Method

Definition

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

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

Remarks

.

Applies to