Бөлісу құралы:


HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Метод

Определение

Указывает корневой каталог содержимого, используемый узлом.

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

Параметры

hostBuilder
IHostBuilder

IHostBuilder для настройки.

contentRoot
String

Путь к корневому каталогу приложения.

Возвращаемое значение

IHostBuilder.

Применяется к