HostingAbstractionsWebHostBuilderExtensions.UseEnvironment(IWebHostBuilder, String) HostingAbstractionsWebHostBuilderExtensions.UseEnvironment(IWebHostBuilder, String) HostingAbstractionsWebHostBuilderExtensions.UseEnvironment(IWebHostBuilder, String) Method

Definition

Specify the environment to be used by the web host.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseEnvironment (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string environment);
static member UseEnvironment : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseEnvironment (hostBuilder As IWebHostBuilder, environment As String) As IWebHostBuilder

Parameters

environment
String String String

The environment to host the application in.

Returns

Applies to