Compartir a través de


HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) Método

Definición

Especifica el entorno que va a usar el host.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ UseEnvironment(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, System::String ^ environment);
public static Microsoft.Extensions.Hosting.IHostBuilder UseEnvironment (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, string environment);
static member UseEnvironment : Microsoft.Extensions.Hosting.IHostBuilder * string -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseEnvironment (hostBuilder As IHostBuilder, environment As String) As IHostBuilder

Parámetros

hostBuilder
IHostBuilder

El objeto IHostBuilder que se va a configurar.

environment
String

El entorno en el que se va a hospedar la aplicación.

Devoluciones

El parámetro de cadena de consulta IHostBuilder.

Se aplica a