Поделиться через


WebHostBuilderExtensions.Configure Метод

Определение

Перегрузки

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Укажите метод запуска, используемый для настройки веб-приложения.

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Укажите метод запуска, используемый для настройки веб-приложения.

Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Исходный код:
WebHostBuilderExtensions.cs
Исходный код:
WebHostBuilderExtensions.cs
Исходный код:
WebHostBuilderExtensions.cs

Укажите метод запуска, используемый для настройки веб-приложения.

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

Параметры

hostBuilder
IWebHostBuilder

IWebHostBuilder для настройки.

configureApp
Action<IApplicationBuilder>

Делегат, настраивающий IApplicationBuilder.

Возвращаемое значение

IWebHostBuilder.

Применяется к

Configure(IWebHostBuilder, Action<WebHostBuilderContext,IApplicationBuilder>)

Исходный код:
WebHostBuilderExtensions.cs

Укажите метод запуска, используемый для настройки веб-приложения.

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

Параметры

hostBuilder
IWebHostBuilder

IWebHostBuilder для настройки.

configureApp
Action<WebHostBuilderContext,IApplicationBuilder>

Делегат, настраивающий IApplicationBuilder.

Возвращаемое значение

IWebHostBuilder.

Применяется к