WebHostBuilderExtensions.Configure 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
Configure(IWebHostBuilder, Action<IApplicationBuilder>) |
Especifique el método de inicio que se usará para configurar la aplicación web. |
Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>) |
Especifique el método de inicio que se usará para configurar la aplicación web. |
Configure(IWebHostBuilder, Action<IApplicationBuilder>)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Especifique el método de inicio que se usará para configurar la aplicación web.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ Configure(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
static member Configure : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of IApplicationBuilder)) As IWebHostBuilder
Parámetros
- hostBuilder
- IWebHostBuilder
El objeto IWebHostBuilder que se va a configurar.
- configureApp
- Action<IApplicationBuilder>
El delegado que configura IApplicationBuilder.
Devoluciones
Se aplica a
Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)
- Source:
- WebHostBuilderExtensions.cs
Especifique el método de inicio que se usará para configurar la aplicación web.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ Configure(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder Configure (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
static member Configure : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function Configure (hostBuilder As IWebHostBuilder, configureApp As Action(Of WebHostBuilderContext, IApplicationBuilder)) As IWebHostBuilder
Parámetros
- hostBuilder
- IWebHostBuilder
El objeto IWebHostBuilder que se va a configurar.
- configureApp
- Action<WebHostBuilderContext,IApplicationBuilder>
El delegado que configura IApplicationBuilder.