HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Método

Definição

Especifica o diretório raiz de conteúdo a ser usado pelo 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.

contentRoot
String

Caminho para o diretório raiz do aplicativo.

Retornos

O IHostBuilder.

Aplica-se a