共用方式為


KestrelConfigurationLoader.LocalhostEndpoint 方法

定義

多載

LocalhostEndpoint(Int32)

使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。

LocalhostEndpoint(Int32, Action<ListenOptions>)

使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。

LocalhostEndpoint(Int32)

來源:
KestrelConfigurationLoader.cs
來源:
KestrelConfigurationLoader.cs
來源:
KestrelConfigurationLoader.cs

使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ LocalhostEndpoint(int port);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint (int port);
member this.LocalhostEndpoint : int -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function LocalhostEndpoint (port As Integer) As KestrelConfigurationLoader

參數

port
Int32

傳回

適用於

LocalhostEndpoint(Int32, Action<ListenOptions>)

來源:
KestrelConfigurationLoader.cs
來源:
KestrelConfigurationLoader.cs
來源:
KestrelConfigurationLoader.cs

使用指定的埠接聽 ::1 和 127.0.0.1。 此類型的端點不支援藉由指定 0 來要求動態埠。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ LocalhostEndpoint(int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader LocalhostEndpoint (int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.LocalhostEndpoint : int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function LocalhostEndpoint (port As Integer, configure As Action(Of ListenOptions)) As KestrelConfigurationLoader

參數

port
Int32
configure
Action<ListenOptions>

傳回

適用於