Share via


RazorViewEngine.GetAbsolutePath(String, String) Method

Definition

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