Share via


IRazorViewEngine.GetPage(String, String) 方法

定义

获取具有给定 pagePath的页(除非executingFilePathpagePath已是绝对的)。

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

参数

executingFilePath
String

当前正在执行的页面的绝对路径(如果有)。

pagePath
String

页面的路径。

返回

RazorPageResult查找页面的 。

注解

.

适用于