Compartir a través de


HostingHostBuilderExtensions.UseContentRoot(IHostBuilder, String) Método

Definición

Especifica el directorio raíz de contenido que va a usar el 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

El objeto IHostBuilder que se va a configurar.

contentRoot
String

La ruta de acceso al directorio raíz de la aplicación.

Devoluciones

El parámetro de cadena de consulta IHostBuilder.

Se aplica a