Condividi tramite


HostingAbstractionsWebHostBuilderExtensions.UseEnvironment Metodo

Definizione

Specificare l'ambiente da usare dall'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseEnvironment(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, System::String ^ environment);
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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

environment
String

Ambiente in cui ospitare l'applicazione.

Restituisce

Oggetto IWebHostBuilder.

Si applica a