RazorViewEngine.GetAbsolutePath(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.
Converts the given pagePath
to be absolute, relative to
executingFilePath
unless pagePath
is already absolute.
public:
virtual System::String ^ GetAbsolutePath(System::String ^ executingFilePath, System::String ^ pagePath);
public string GetAbsolutePath (string executingFilePath, string pagePath);
public string? GetAbsolutePath (string? executingFilePath, string? pagePath);
abstract member GetAbsolutePath : string * string -> string
override this.GetAbsolutePath : string * string -> string
Public Function GetAbsolutePath (executingFilePath As String, pagePath As String) As String
Parameters
- executingFilePath
- String
The absolute path to the currently-executing page, if any.
- pagePath
- String
The path to the page.
Returns
The combination of executingFilePath
and pagePath
if
pagePath
is a relative path. The pagePath
value (unchanged)
otherwise.
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