Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

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