WebHostBuilderExtensions.UseStartup WebHostBuilderExtensions.UseStartup WebHostBuilderExtensions.UseStartup Method

Definition

Overloads

UseStartup(IWebHostBuilder, Type) UseStartup(IWebHostBuilder, Type) UseStartup(IWebHostBuilder, Type)

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

UseStartup<TStartup>(IWebHostBuilder) UseStartup<TStartup>(IWebHostBuilder) UseStartup<TStartup>(IWebHostBuilder)

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

UseStartup(IWebHostBuilder, Type) UseStartup(IWebHostBuilder, Type) 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);
static member UseStartup : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Type -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseStartup (hostBuilder As IWebHostBuilder, startupType As Type) As IWebHostBuilder
Parameters
startupType
Type Type Type

The Type to be used.

Returns

UseStartup<TStartup>(IWebHostBuilder) UseStartup<TStartup>(IWebHostBuilder) 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;
static member UseStartup : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder (requires 'Startup : null)
<Extension()>
Public Function UseStartup(Of TStartup As Class) (hostBuilder As IWebHostBuilder) As IWebHostBuilder
Type Parameters
TStartup

The type containing the startup methods for the application.

Parameters
Returns

Applies to