다음을 통해 공유


HostingAbstractionsWebHostBuilderExtensions.UseWebRoot 메서드

정의

웹 호스트에서 사용할 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

웹 서버에서 사용하는 루트 디렉터리의 경로입니다.

반환

IWebHostBuilder

적용 대상