WebHostBuilderExtensions.UseStartup Method

Definition

Overloads

UseStartup(IWebHostBuilder, Type)

Specify the startup type to be used by the web host.

UseStartup<TStartup>(IWebHostBuilder)

Specify the startup type to be used by the web host.

UseStartup(IWebHostBuilder, Type)

Specify the startup type to be used by the web host.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Type startupType);
Parameters
hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

startupType
Type

The Type to be used.

Returns

UseStartup<TStartup>(IWebHostBuilder)

Specify the startup type to be used by the web host.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup<TStartup> (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder) where TStartup : class;
Type Parameters
TStartup

The type containing the startup methods for the application.

Parameters
hostBuilder
IWebHostBuilder

The IWebHostBuilder to configure.

Returns

Applies to