HostingAbstractionsWebHostBuilderExtensions.UseStartup Methode

Definition

Geben Sie die Assembly an, die den Starttyp enthält, der vom Webhost verwendet werden soll.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseStartup(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, System::String ^ startupAssemblyName);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseStartup (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, string startupAssemblyName);
static member UseStartup : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseStartup (hostBuilder As IWebHostBuilder, startupAssemblyName As String) As IWebHostBuilder

Parameter

hostBuilder
IWebHostBuilder

Die zu konfigurierende IWebHostBuilder-Schnittstelle.

startupAssemblyName
String

Der Name der Assembly, die den Starttyp enthält.

Gibt zurück

IWebHostBuilder

Die IWebHostBuilder.

Gilt für: