共用方式為


WebHost.StartWith 方法

定義

多載

StartWith(Action<IApplicationBuilder>)

使用預先設定的預設值,初始化並啟動新的 IWebHost 。 如需詳細資訊,請參閱<CreateDefaultBuilder()>。

StartWith(String, Action<IApplicationBuilder>)

使用預先設定的預設值,初始化並啟動新的 IWebHost 。 如需詳細資訊,請參閱<CreateDefaultBuilder()>。

StartWith(Action<IApplicationBuilder>)

來源:
WebHost.cs
來源:
WebHost.cs
來源:
WebHost.cs

使用預先設定的預設值,初始化並啟動新的 IWebHost 。 如需詳細資訊,請參閱<CreateDefaultBuilder()>。

public:
 static Microsoft::AspNetCore::Hosting::IWebHost ^ StartWith(Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ app);
public static Microsoft.AspNetCore.Hosting.IWebHost StartWith (Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app);
static member StartWith : Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHost
Public Shared Function StartWith (app As Action(Of IApplicationBuilder)) As IWebHost

參數

傳回

啟動 IWebHost ,裝載應用程式。

適用於

StartWith(String, Action<IApplicationBuilder>)

來源:
WebHost.cs
來源:
WebHost.cs
來源:
WebHost.cs

使用預先設定的預設值,初始化並啟動新的 IWebHost 。 如需詳細資訊,請參閱<CreateDefaultBuilder()>。

public:
 static Microsoft::AspNetCore::Hosting::IWebHost ^ StartWith(System::String ^ url, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ app);
public static Microsoft.AspNetCore.Hosting.IWebHost StartWith (string url, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app);
static member StartWith : string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.IWebHost
Public Shared Function StartWith (url As String, app As Action(Of IApplicationBuilder)) As IWebHost

參數

url
String

裝載應用程式將接聽的 URL。

傳回

啟動 IWebHost ,裝載應用程式。

適用於