Lezen in het Engels

Delen via


IWebHostEnvironment Interface

Definition

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

C#
public interface IWebHostEnvironment : Microsoft.Extensions.Hosting.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

Product Versies
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0