Share via


IWebHostEnvironment Interface

Definition

Provides information about the web hosting environment an application is running in.

public interface class IWebHostEnvironment : Microsoft::Extensions::Hosting::IHostEnvironment
public interface IWebHostEnvironment : Microsoft.Extensions.Hosting.IHostEnvironment
type IWebHostEnvironment = interface
    interface IHostEnvironment
Public Interface IWebHostEnvironment
Implements IHostEnvironment
Implements

Properties

WebRootFileProvider

Gets or sets an IFileProvider pointing at WebRootPath. This defaults to referencing files from the 'wwwroot' subfolder.

WebRootPath

Gets or sets the absolute path to the directory that contains the web-servable application content files. This defaults to the 'wwwroot' subfolder.

Applies to