HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) Methode

Definition

Gibt die Umgebung an, die vom Host verwendet werden soll.Specify the environment to be used by the 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

Parameter

hostBuilder
IHostBuilder

Die zu konfigurierende IHostBuilder-Schnittstelle.The IHostBuilder to configure.

environment
String

Die Umgebung, in der die Anwendung zu finden ist.The environment to host the application in.

Gibt zurück

IHostBuilder

Die IHostBuilder.The IHostBuilder.

Gilt für: