WebHostBuilderExtensions.Configure Método

Definição

Sobrecargas

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Especifique o método de inicialização a ser usado para configurar o aplicativo Web.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Especifique o método de inicialização a ser usado para configurar o aplicativo Web.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs
Origem:
WebHostBuilderExtensions.cs

Especifique o método de inicialização a ser usado para configurar o aplicativo 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

O IWebHostBuilder a ser configurado.

configureApp
Action<IApplicationBuilder>

O delegado que configura o IApplicationBuilder.

Retornos

O IWebHostBuilder.

Aplica-se a

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Origem:
WebHostBuilderExtensions.cs

Especifique o método de inicialização a ser usado para configurar o aplicativo 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

O IWebHostBuilder a ser configurado.

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

O delegado que configura o IApplicationBuilder.

Retornos

O IWebHostBuilder.

Aplica-se a