A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Interface IVirtualPathResolver

Resolves virtual path with respect to virtual application.

Namespace: EPiServer.Web
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public interface IVirtualPathResolver

Methods

ToAbsolute(String)

Converts a virtual path to an application absolute path.

Declaration
string ToAbsolute(string virtualPath)
Parameters
Type Name Description
System.String virtualPath

The virtual path to convert to an application-relative path

Returns
Type Description
System.String

The absolute path representation of the specified virtual path.

ToAppRelative(String)

Converts a virtual path to an application-relative path.

Declaration
string ToAppRelative(string virtualPath)
Parameters
Type Name Description
System.String virtualPath

The virtual path to convert to an application-relative path.

Returns
Type Description
System.String

The application-relative path representation of virtualPath.

Extension Methods