GenericHostWebHostBuilderExtensions.ConfigureWebHost Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>) |
Agrega y configura una aplicación web ASP.NET Core. |
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>) |
Agrega y configura una aplicación web ASP.NET Core. |
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)
Agrega y configura una aplicación web ASP.NET Core.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder)) As IHostBuilder
Parámetros
- builder
- IHostBuilder
El objeto IHostBuilder al que se va a agregar IWebHostBuilder.
- configure
- Action<IWebHostBuilder>
El delegado que configura IWebHostBuilder.
Devoluciones
Se aplica a
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)
Agrega y configura una aplicación web ASP.NET Core.
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureWebHost (this Microsoft.Extensions.Hosting.IHostBuilder builder, Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> configure, Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> configureWebHostBuilder);
static member ConfigureWebHost : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.AspNetCore.Hosting.IWebHostBuilder> * Action<Microsoft.Extensions.Hosting.WebHostBuilderOptions> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureWebHost (builder As IHostBuilder, configure As Action(Of IWebHostBuilder), configureWebHostBuilder As Action(Of WebHostBuilderOptions)) As IHostBuilder
Parámetros
- builder
- IHostBuilder
El objeto IHostBuilder al que se va a agregar IWebHostBuilder.
- configure
- Action<IWebHostBuilder>
El delegado que configura IWebHostBuilder.
- configureWebHostBuilder
- Action<WebHostBuilderOptions>
El delegado que configura WebHostBuilderOptions.