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 IWebHostingEnvironment

Path information for files served via the wwwroot

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

Properties

WebRootPath

The physical path to the folder serving web content (ie "c:\inetpub\wwwroot")

Declaration
string WebRootPath { get; }
Property Value
Type Description
System.String

WebRootVirtualPath

The virtual path to the folder serving web content (ie "/")

Declaration
string WebRootVirtualPath { get; }
Property Value
Type Description
System.String

Extension Methods