GenericHostWebHostBuilderExtensions.ConfigureWebHost Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>) |
Aggiunge e configura un'applicazione Web ASP.NET Core. |
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>) |
Aggiunge e configura un'applicazione Web ASP.NET Core. |
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>)
Aggiunge e configura un'applicazione 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
Parametri
- builder
- IHostBuilder
Oggetto IHostBuilder a cui aggiungere IWebHostBuilder.
- configure
- Action<IWebHostBuilder>
Delegato che configura IWebHostBuilder.
Restituisce
Oggetto IHostBuilder.
Si applica a
ConfigureWebHost(IHostBuilder, Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)
Aggiunge e configura un'applicazione 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
Parametri
- builder
- IHostBuilder
Oggetto IHostBuilder a cui aggiungere IWebHostBuilder.
- configure
- Action<IWebHostBuilder>
Delegato che configura IWebHostBuilder.
- configureWebHostBuilder
- Action<WebHostBuilderOptions>
Delegato che configura WebHostBuilderOptions.
Restituisce
Oggetto IHostBuilder.