KestrelServerOptions.Listen 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
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>