Compartir a través de


WebHostBuilderExtensions.Configure Método

Definición

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

IWebHostBuilder.

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.

Devoluciones

IWebHostBuilder.

Se aplica a