次の方法で共有


HostingAbstractionsWebHostBuilderExtensions.UseEnvironment メソッド

定義

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

パラメーター

hostBuilder
IWebHostBuilder

構成する IWebHostBuilder

environment
String

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

戻り値

IWebHostBuilder

適用対象