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.