KestrelServerOptions.Listen 方法

定義

多載

Listen(IPEndPoint, Action<ListenOptions>)

系結至指定的 IP 位址和埠。 回呼會設定端點特定的設定。

Listen(IPAddress, Int32, Action<ListenOptions>)

系結至指定的 IP 位址和埠。 回呼會設定端點特定的設定。

Listen(IPAddress, Int32)

系結至指定的 IP 位址和埠。

Listen(EndPoint)

系結至指定的端點。

Listen(IPEndPoint)

系結至指定的 IP 端點。

Listen(EndPoint, Action<ListenOptions>)

系結至指定的端點。 回呼會設定端點特定的設定。

Listen(IPEndPoint, Action<ListenOptions>)

系結至指定的 IP 位址和埠。 回呼會設定端點特定的設定。

public:
 void Listen(System::Net::IPEndPoint ^ endPoint, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.IPEndPoint endPoint, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.IPEndPoint * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (endPoint As IPEndPoint, configure As Action(Of ListenOptions))

參數

endPoint
IPEndPoint
configure
Action<ListenOptions>

適用於

Listen(IPAddress, Int32, Action<ListenOptions>)

系結至指定的 IP 位址和埠。 回呼會設定端點特定的設定。

public:
 void Listen(System::Net::IPAddress ^ address, int port, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.IPAddress address, int port, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.IPAddress * int * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (address As IPAddress, port As Integer, configure As Action(Of ListenOptions))

參數

address
IPAddress
port
Int32
configure
Action<ListenOptions>

適用於

Listen(IPAddress, Int32)

系結至指定的 IP 位址和埠。

public:
 void Listen(System::Net::IPAddress ^ address, int port);
public void Listen (System.Net.IPAddress address, int port);
member this.Listen : System.Net.IPAddress * int -> unit
Public Sub Listen (address As IPAddress, port As Integer)

參數

address
IPAddress
port
Int32

適用於

Listen(EndPoint)

系結至指定的端點。

public:
 void Listen(System::Net::EndPoint ^ endPoint);
public void Listen (System.Net.EndPoint endPoint);
member this.Listen : System.Net.EndPoint -> unit
Public Sub Listen (endPoint As EndPoint)

參數

endPoint
EndPoint

適用於

Listen(IPEndPoint)

系結至指定的 IP 端點。

public:
 void Listen(System::Net::IPEndPoint ^ endPoint);
public void Listen (System.Net.IPEndPoint endPoint);
member this.Listen : System.Net.IPEndPoint -> unit
Public Sub Listen (endPoint As IPEndPoint)

參數

endPoint
IPEndPoint

適用於

Listen(EndPoint, Action<ListenOptions>)

系結至指定的端點。 回呼會設定端點特定的設定。

public:
 void Listen(System::Net::EndPoint ^ endPoint, Action<Microsoft::AspNetCore::Server::Kestrel::Core::ListenOptions ^> ^ configure);
public void Listen (System.Net.EndPoint endPoint, Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> configure);
member this.Listen : System.Net.EndPoint * Action<Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions> -> unit
Public Sub Listen (endPoint As EndPoint, configure As Action(Of ListenOptions))

參數

endPoint
EndPoint
configure
Action<ListenOptions>

適用於