RazorViewEngine.GetPage(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for