WebApplication.Environment Property  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The application's configured IWebHostEnvironment.
public Microsoft.AspNetCore.Hosting.IWebHostEnvironment Environment { get; }member this.Environment : Microsoft.AspNetCore.Hosting.IWebHostEnvironmentPublic ReadOnly Property Environment As IWebHostEnvironment