다음을 통해 공유


HostingAbstractionsWebHostBuilderExtensions.UseContentRoot 메서드

정의

웹 호스트에서 사용할 콘텐츠 루트 디렉터리를 지정합니다.

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

매개 변수

hostBuilder
IWebHostBuilder

구성할 IWebHostBuilder입니다.

contentRoot
String

애플리케이션 루트 디렉터리의 경로입니다.

반환

IWebHostBuilder

적용 대상