HostingAbstractionsWebHostBuilderExtensions.UseWebRoot メソッド

定義

Web ホストで使用する webroot ディレクトリを指定します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseWebRoot(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, System::String ^ webRoot);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseWebRoot (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string webRoot);
static member UseWebRoot : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseWebRoot (hostBuilder As IWebHostBuilder, webRoot As String) As IWebHostBuilder

パラメーター

hostBuilder
IWebHostBuilder

構成する IWebHostBuilder

webRoot
String

Web サーバーによって使用されるルート ディレクトリへのパス。

戻り値

IWebHostBuilder

適用対象