Condividi tramite


HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) Metodo

Definizione

Specifica l'ambiente da usare dall'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

Parametri

hostBuilder
IHostBuilder

Oggetto IHostBuilder da configurare.

environment
String

Ambiente in cui ospitare l'applicazione.

Restituisce

Oggetto IHostBuilder.

Si applica a