HostingHostBuilderExtensions.UseEnvironment(IHostBuilder, String) メソッド

定義

ホストで使用する環境を指定します。

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

パラメーター

hostBuilder
IHostBuilder

構成する IHostBuilder

environment
String

アプリケーションをホストする環境。

戻り値

IHostBuilder

適用対象