Sdílet prostřednictvím


HostingAbstractionsWebHostBuilderExtensions.Start Metoda

Definice

Spusťte webového hostitele a naslouchejte na zadaných adresách URL.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHost ^ Start(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, ... cli::array <System::String ^> ^ urls);
public static Microsoft.AspNetCore.Hosting.IWebHost Start (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, params string[] urls);
static member Start : Microsoft.AspNetCore.Hosting.IWebHostBuilder * string[] -> Microsoft.AspNetCore.Hosting.IWebHost
<Extension()>
Public Function Start (hostBuilder As IWebHostBuilder, ParamArray urls As String()) As IWebHost

Parametry

hostBuilder
IWebHostBuilder

Spustí IWebHostBuilder se.

urls
String[]

Adresy URL, na které bude hostovaná aplikace naslouchat.

Návraty

Hodnota IWebHostBuilder

Platí pro