HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Método
Definição
Especifique o diretório raiz de conteúdo a ser usado pelo host.Specify the content root directory to be used by the host.
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
Parâmetros
- hostBuilder
- IHostBuilder
O IHostBuilder a ser configurado.The IHostBuilder to configure.
- contentRoot
- String
Caminho para o diretório raiz do aplicativo.Path to root directory of the application.
Retornos
O IHostBuilder.The IHostBuilder.